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

C / C++ / MFC

 
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 
AnswerRe: Variables not the same as input file. Pin
Richard MacCutchan28-Mar-10 1:32
mveRichard MacCutchan28-Mar-10 1:32 
I have just tried this as it stands changing only the static_cast(letter1) to (int)letter1, and the results are correct. Looking at your results I can only assume that the program cannot find your input file, but as you do no error checking there is no notification of that condition. Check the return value of the open call to see that it is not NULL.

I would also agree with Garth's suggestion that you use int rather than double for your numeric values.
txtspeak is the realm of 9 year old children, not developers. Christian Graus

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 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 23:03
mveRichard MacCutchan28-Mar-10 23:03 

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.