Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Question. Pin
Robert A. T. Káldy9-Mar-04 23:19
Robert A. T. Káldy9-Mar-04 23:19 
GeneralNoob wants organization Pin
Slaru9-Mar-04 14:39
Slaru9-Mar-04 14:39 
GeneralRe: Noob wants organization Pin
Prakash Nadar9-Mar-04 16:39
Prakash Nadar9-Mar-04 16:39 
GeneralRe: Noob wants organization Pin
Curi0us_George9-Mar-04 17:15
Curi0us_George9-Mar-04 17:15 
GeneralRe: Noob wants organization Pin
Slaru20-Mar-04 13:32
Slaru20-Mar-04 13:32 
GeneralFile I/O Problem Pin
scrname9-Mar-04 13:44
scrname9-Mar-04 13:44 
GeneralRe: File I/O Problem Pin
modeonetwo9-Mar-04 15:10
modeonetwo9-Mar-04 15:10 
GeneralRe: File I/O Problem Pin
Christian Graus9-Mar-04 15:12
protectorChristian Graus9-Mar-04 15:12 
OK, let's have a look.

You included iostream.h and fstream.h, you should just include iostream and fstream ( drop the h ). The .h versions are the ones created prior to the standard. I think you'll find that you'll then need to put using std::cin;, etc. for all the parts of iostreams you use. Namespaces are just one benefit of using standard headers.

You should also investigate using std::vector to hold your data, and probably put it in a struct. The first so you don't have a limit to how many items can be entered, the second to connect the three pieces of data you collect.

I dunno what your main problem is though, I'd try flushing the stream perhaps (cin.flush() from memory), or perhaps using the standard C++ headers will even solve the problem.

Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralRe: File I/O Problem Pin
scrname9-Mar-04 17:10
scrname9-Mar-04 17:10 
GeneralRe: File I/O Problem Pin
Christian Graus9-Mar-04 17:15
protectorChristian Graus9-Mar-04 17:15 
GeneralSetPercision in MFC Pin
MeterMan9-Mar-04 12:16
MeterMan9-Mar-04 12:16 
GeneralRe: SetPercision in MFC Pin
Ryan Binns9-Mar-04 17:52
Ryan Binns9-Mar-04 17:52 
GeneralRe: SetPercision in MFC Pin
MeterMan10-Mar-04 10:42
MeterMan10-Mar-04 10:42 
GeneralOnFIleOpen Current Directory Pin
Coremn9-Mar-04 12:11
Coremn9-Mar-04 12:11 
GeneralProblem with parsing a BYTE* Pin
__Cerb9-Mar-04 12:07
__Cerb9-Mar-04 12:07 
GeneralRe: Problem with parsing a BYTE* Pin
Curi0us_George9-Mar-04 12:35
Curi0us_George9-Mar-04 12:35 
GeneralRe: Problem with parsing a BYTE* Pin
__Cerb9-Mar-04 13:00
__Cerb9-Mar-04 13:00 
GeneralRe: Problem with parsing a BYTE* Pin
Curi0us_George9-Mar-04 17:03
Curi0us_George9-Mar-04 17:03 
QuestionAnyone has some experience with Windows 98 Enabled and Hebrew??? Pin
LukeV9-Mar-04 10:31
LukeV9-Mar-04 10:31 
QuestionCan Anyone Help me Plz Pin
MrNiceBerG9-Mar-04 10:16
MrNiceBerG9-Mar-04 10:16 
AnswerRe: Can Anyone Help me Plz Pin
MeterMan9-Mar-04 12:23
MeterMan9-Mar-04 12:23 
QuestionInteractive 2d graph control? Pin
khan20009-Mar-04 9:54
khan20009-Mar-04 9:54 
GeneralMSHTML debug help needed Pin
Arun Bhalla9-Mar-04 9:48
Arun Bhalla9-Mar-04 9:48 
GeneralLayered Service Provider Pin
Member 8826679-Mar-04 8:53
Member 8826679-Mar-04 8:53 
GeneralGetting App Path Pin
Ghasrfakhri9-Mar-04 8:45
Ghasrfakhri9-Mar-04 8:45 

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.