49,761 Topics
| |
I was wondering if there's a way to convert a CString or a char *x[10] to a int? I know I can convert int to CString, but can it go the other way? Thanx, Atrus | |
Hi guys This is not my homework it is a private project Iam working on .... and Ive searched google for an answer...I also found a similar thread on this site but the code would not work. Can someone tell me please how to create a full screen form in … | |
The following code works. However i want it so when the user reaches 500 dollars the last cout statement will run. But for some reason i can't get it to work properly. It skips the last cout statment and enters -numbers. [code]#include <iostream> using namespace std; int main () { … | |
Hello, I've tried to implement a queue using a array which loops. (Circular lists). However something is wrong. When I add a new item to the list , I get the 'case digit' aswell... heres the code : [php] #include <iostream> #define MAXSIZE 3 using namespace std; void insert(int array[]); … | |
I can't seem to get this sorting alogorithm to work: [code] #include <iostream> void sortAssending(int nums[], int size); int main() { int nums[] = {175,167,160,164,183,187,188,179,176,175, 169,175,176,178,165,160,173,165,187,178}; sortAssending(nums, 20); for (int i=0; i<20; i++) { std::cout << nums[i] << std::endl; } system("PAUSE"); } void sortAssending(int nums[], int size) { for (int … | |
hi. new here. Im a freshman at UCSB and im taking my first c++ class. I got this assignment in class and i was hoping for some tips. The value of pi to 15 decimal places is PI = 3.141592653589793 . . . Your job is to write a program … | |
I've been working with OpenGL and Visual C++ for a short time, and I just tried to use the GLUI library for some fuctionality. But now I'm getting this error: [CODE]LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'[/CODE] I've realized that the library is not anywhere to be found … | |
Hello, I've been struggling to implmenent a 2 way link list. The code runs but when I enter the 2nd element into the list I get a segmentation fault......I cant find my error could anyone take a look? [php] #include <iostream> using namespace std; typedef struct record { int num; … | |
I'm having a brain fart. How would I write the following in c++? if (x is divisible by 15) Thanx, Atrus | |
[php] int main() { int state = -1; int scanning = -1; cout << "Welcome to the lexcial scanner.\nPlease enter a char" << endl; char textfile ; textfile = getchar(); if(textfile == 'A' || textfile == 'B') { state = 1; textfile = getchar(); cout << "does it work?" <<endl; … | |
I direly need help with passing an array of structures into a function. The problem is that Main_menu.name is blank. What is the correct syntax to pass by reference, so that I will get the Main_menu.name in main()? I would like to use pointer in the createMenu function for efficiency. … | |
Hi, We are working on an assignment where we have to use haptic interface and VRML file. This assignment also asks us to include a sound of the VRML image which we are using. Could anyone please help us as to how to code in C language to upload winamp … | |
Hopefully I'll be able to explain this issue. If not, I may just have to post a lot of code. Basically, I've got a base class called 'Log' with virtual methods of writing to a log. I have two descendent classes - ScreenLog and FileLog (with all the same methods). … | |
Sample run of the program: Welcome … Please type in your budget: 120 Menu Select an item from the above menu: 2 How many of this item you want?: 2 Please confirm [Y : yes, N : no] ?: Y Total cost for this item = 50.000, Budget remaining = … | |
please help me how to write this program. write a program to calculate: a - b / c * d + e *f % g where a , b , c , d , e , f , g are integer the output format like. a= b= c= d= e= … | |
hi evry1, need opinion here to create a business graphic software... [COLOR=DarkGreen]http://www.smartdraw.com/product/flo/index.htm[/COLOR] is there any api to achieve like the image shown in the above link... what should i read on...to do a similar dekstop app... thanks in advance.. one more thing...can c and c++ combine with web programming lang … | |
if i try to use this constructor BigNum d("-2345"); how do i get the compiler to convert the string to a negative number?here's the code i have for this constructor [code]BigNum::BigNum(string s) { num = new node; num -> next = NULL; num -> val = 0; int i, j, … | |
is it possible to have a validation password while open a MS Access password?? Where should i set it and how can i set it? the open connection or? pls advice.... thanks... | |
I have this pathfinder and I got it to work using c++... now i am trying to convert it to OpenGL and it is not working. I wrote code to use a mouse to plot the start and destination points. but it won't work properly. I have attatched the file … | |
Hello! I need help on how to upload sound in C++ language. I was wondering if you can provide me with source code or an example where the sound has been uploaded. It would be a great help if you can provide me an example which includes a graphic. Thank … | |
[CODE]while( i < lineCount) { current = 1; while (nList[i-1] = nList[i]&& i < lineCount) { current++; i++; if (current > highest); highest = current; arrayposition = i; multiMode = false; } else if(current == highest) { multiMode = true; } i = i + 1; } if (multiMode == … | |
Hi everybody, I have just started working with C++ and I find it intersting and facinating!! However, I am struggling a bit with a problem. I want to find out if the elements in an integer array are increasing or not. I have used a nested loop, but I think … | |
Hi everyone, I am having a little trouble finishing my programming assignment. I am trying to write a program that inputs two dates and validates them to make sure the input is ok and that the dates are between 1/1/1850 and 12/31/2100. I have gotten all of the validation down … | |
Hi every body I m new to symbian programming in c++ but not finding much help related to symbian in c++ So any one who can help me in this regard. and suggest a book for beginners Another problem is that i wana use bluetooth socket api but not finding … | |
excuse me as i am new to programming and trying to learn i have searched through previous forum groups on this topic and i wish to seek the help of all tthe experts out there... i wish to input a file into a class i found this example [code]#include <iostream> … | |
I'm a beginer and I need some help with an assignment. I've looked around, but i have not been able to find an explination that I can understand. I am sure that I have done plenty of things wrong, and I could use some help. Here is the code. // … | |
My program is suppose to read positive and odd numbers and add their sums but any negative numbers they are not suppose to count or be added to the sum. My error message is coming up when I type a negative number in but I think it's still being counted … | |
Playing a game, I got stuck on a mini gamne puzzle in which You were required to find numbers, then put them into a five digit code to open a door. I had found the numbers but had no idea what order they should go in. So i made a … | |
Hello, i am new to c++. i wanted to convert minutes e.g. 75, to hours and minutes in hh:mm format. any help will be greately appreciated. thanks :D | |
[code] #include <iostream> using namespace std; class emp { private : int i ; int j; public : emp( ) { i = 10 ; j = 50 ; } void display() { cout<<endl<<i<<" "<<j<<endl; } } ; int main( ) { emp *p = new emp ; p->display(); int … |
The End.