Click here to Skip to main content
15,890,345 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: regarding creating databse Pin
Rajesh R Subramanian28-Mar-10 23:00
professionalRajesh R Subramanian28-Mar-10 23:00 
JokeRe: regarding creating databse Pin
Richard MacCutchan28-Mar-10 23:05
mveRichard MacCutchan28-Mar-10 23:05 
JokeRe: regarding creating databse Pin
LittleYellowBird28-Mar-10 23:43
LittleYellowBird28-Mar-10 23:43 
JokeRe: regarding creating databse Pin
Richard MacCutchan28-Mar-10 23:51
mveRichard MacCutchan28-Mar-10 23:51 
JokeRe: regarding creating databse Pin
CPallini28-Mar-10 23:28
mveCPallini28-Mar-10 23:28 
GeneralRe: regarding creating databse Pin
KingsGambit28-Mar-10 9:57
KingsGambit28-Mar-10 9:57 
QuestionVariables not the same as input file. Pin
Frank Robertson27-Mar-10 18:06
Frank Robertson27-Mar-10 18:06 
AnswerRe: Variables not the same as input file. Pin
Garth J Lancaster27-Mar-10 21:14
professionalGarth J Lancaster27-Mar-10 21:14 
why are num1 and num2 declared as double ? I would try 'int' (looking at your input file example)..

int num1 = 0;
int num2 = 0;


what is that static_cast doing ? try

<< (int)letter1 << endl;


ok, thats old school these days, but Im an old f@rt, so it doesnt matter ... in the next two lines, bracket the operations so you get

<< (num1 + num2) << endl;
<< (num1 * num2) << endl;


the 'system(pause)' isnt doing much - you can step through your prog using F10 for example (if you're using MSVC) and look at the variable contents - or, sprinkle some 'cout' statments around to display things on the console/stdout instead of just to the file

ie

cout << "The Value of num1 is : " << num1 << endl;

AnswerRe: Variables not the same as input file. Pin
Richard MacCutchan28-Mar-10 1:32
mveRichard MacCutchan28-Mar-10 1:32 
GeneralRe: Variables not the same as input file. Pin
Frank Robertson28-Mar-10 2:56
Frank Robertson28-Mar-10 2:56 
GeneralRe: Variables not the same as input file. Pin
Richard MacCutchan28-Mar-10 4:30
mveRichard MacCutchan28-Mar-10 4:30 
QuestionLNK2001 and LNK2019 errors Pin
Krzysiaczek9927-Mar-10 15:17
Krzysiaczek9927-Mar-10 15:17 
AnswerRe: LNK2001 and LNK2019 errors Pin
Adam Roderick J27-Mar-10 17:43
Adam Roderick J27-Mar-10 17:43 
AnswerRe: LNK2001 and LNK2019 errors Pin
Tim Craig27-Mar-10 17:51
Tim Craig27-Mar-10 17:51 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9927-Mar-10 21:44
Krzysiaczek9927-Mar-10 21:44 
AnswerRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 1:38
mveRichard MacCutchan28-Mar-10 1:38 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 3:32
Krzysiaczek9928-Mar-10 3:32 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 4:33
mveRichard MacCutchan28-Mar-10 4:33 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 4:49
Krzysiaczek9928-Mar-10 4:49 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 4:53
mveRichard MacCutchan28-Mar-10 4:53 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 5:29
Krzysiaczek9928-Mar-10 5:29 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 5:59
mveRichard MacCutchan28-Mar-10 5:59 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 8:07
Krzysiaczek9928-Mar-10 8:07 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 11:34
mveRichard MacCutchan28-Mar-10 11:34 
GeneralRe: LNK2001 and LNK2019 errors [modified] Pin
Krzysiaczek9928-Mar-10 13:16
Krzysiaczek9928-Mar-10 13:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.