49,761 Topics

Member Avatar for
Member Avatar for atrusmre

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

Member Avatar for Ancient Dragon
0
116
Member Avatar for shakoush2001

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 …

Member Avatar for shakoush2001
0
430
Member Avatar for simon126

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 () { …

Member Avatar for vegaseat
0
110
Member Avatar for Acidburn

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[]); …

Member Avatar for Daishi
0
72
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
120
Member Avatar for bigwillis234

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 …

Member Avatar for Rashakil Fol
0
275
Member Avatar for urubu715

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 …

0
52
Member Avatar for Acidburn

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; …

Member Avatar for Puckdropper
0
84
Member Avatar for atrusmre

I'm having a brain fart. How would I write the following in c++? if (x is divisible by 15) Thanx, Atrus

Member Avatar for Lerner
0
119
Member Avatar for Acidburn

[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; …

Member Avatar for Dave Sinkula
0
111
Member Avatar for amy590

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. …

Member Avatar for amy590
0
160
Member Avatar for gmv

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 …

0
102
Member Avatar for winbatch

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). …

Member Avatar for winbatch
0
348
Member Avatar for saifo

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 = …

Member Avatar for saifo
0
204
Member Avatar for gunalan

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= …

Member Avatar for Lerner
0
213
Member Avatar for eliauction

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 …

0
122
Member Avatar for LordJayno

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, …

Member Avatar for LordJayno
0
192
Member Avatar for lsy

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...

Member Avatar for lsy
0
149
Member Avatar for brian63304

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 …

Member Avatar for brian63304
0
149
Member Avatar for gmv

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 …

Member Avatar for prog-bman
0
163
Member Avatar for Talyen42

[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 == …

Member Avatar for Dave Sinkula
0
252
Member Avatar for gropedersen

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 …

Member Avatar for Rashakil Fol
0
5K
Member Avatar for stupidenator

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 …

Member Avatar for stupidenator
0
155
Member Avatar for mhk_mohsin

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 …

Member Avatar for Ene Uran
0
130
Member Avatar for bobobobo51

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> …

Member Avatar for svirk
0
250
Member Avatar for ProCynic

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. // …

0
53
Member Avatar for Dee_Dee

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 …

Member Avatar for Dee_Dee
0
203
Member Avatar for Gamermonk10

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 …

Member Avatar for Gamermonk10
0
237
Member Avatar for imanust

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

Member Avatar for winbatch
0
187
Member Avatar for SpS

[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 …

Member Avatar for SpS
0
129

The End.