Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalchar interpretation Pin
Petr Pivonka7-Jan-05 14:17
sussPetr Pivonka7-Jan-05 14:17 
GeneralRe: char interpretation Pin
User 66588-Jan-05 2:31
User 66588-Jan-05 2:31 
GeneralCurious about the file sort order Pin
LiYS7-Jan-05 13:39
LiYS7-Jan-05 13:39 
GeneralRe: Curious about the file sort order Pin
Maximilien7-Jan-05 14:09
Maximilien7-Jan-05 14:09 
QuestionUnicode needed for Turkish characters? Pin
ed welch7-Jan-05 13:15
ed welch7-Jan-05 13:15 
AnswerRe: Unicode needed for Turkish characters? Pin
markkuk7-Jan-05 23:39
markkuk7-Jan-05 23:39 
GeneralRe: Unicode needed for Turkish characters? Pin
ed welch9-Jan-05 0:37
ed welch9-Jan-05 0:37 
GeneralSimple File Input Pin
Jordan C. Atlas7-Jan-05 11:43
Jordan C. Atlas7-Jan-05 11:43 
Hello,

I'm looking for suggestions on how to design an text input file. I imagine that each line of the file would look something like this:

Operation argument1 argument2 argument3 etc.

I understand how to do file input if you just want to read one word at a time using the >> operator, but I'm not sure how to "check" what the incoming input is. For example, if a line in the input file started with the operation "CreateNewAccount", how do I (programmatically) check what the string says? If I use std::string for the input the >> operator doesn't seem to like it. If I use char arrays, I can't seem to get two strings to be recognized as equal.

Thanks you for suggestions for how to do this, or perhaps for better ways to go about it. If there is any part I need to clarify let me know.

-Jordan Atlas
GeneralRe: Simple File Input Pin
Jordan C. Atlas7-Jan-05 11:53
Jordan C. Atlas7-Jan-05 11:53 
GeneralRe: Simple File Input Pin
PJ Arends8-Jan-05 8:07
professionalPJ Arends8-Jan-05 8:07 
GeneralRe: Simple File Input Pin
Jordan C. Atlas8-Jan-05 8:45
Jordan C. Atlas8-Jan-05 8:45 
GeneralCrystal Report Pin
javad_20007-Jan-05 10:31
javad_20007-Jan-05 10:31 
GeneralRe: Crystal Report Pin
Michael P Butler7-Jan-05 11:27
Michael P Butler7-Jan-05 11:27 
Generaldc.DrawText() doesn't work?! Pin
rh0057-Jan-05 10:04
rh0057-Jan-05 10:04 
GeneralRe: dc.DrawText() doesn't work?! Pin
PJ Arends7-Jan-05 10:20
professionalPJ Arends7-Jan-05 10:20 
GeneralUsing Winsocks Select() function. Pin
jerry1211a7-Jan-05 8:39
jerry1211a7-Jan-05 8:39 
GeneralRe: Using Winsocks Select() function. Pin
User 66587-Jan-05 12:25
User 66587-Jan-05 12:25 
GeneralReporting malloc problem with _malloc_dbg question. Pin
Maximilien7-Jan-05 8:08
Maximilien7-Jan-05 8:08 
GeneralRe: Reporting malloc problem with _malloc_dbg question. Pin
PJ Arends7-Jan-05 10:13
professionalPJ Arends7-Jan-05 10:13 
GeneralRe: Reporting malloc problem with _malloc_dbg question. Pin
Maximilien7-Jan-05 13:56
Maximilien7-Jan-05 13:56 
QuestionIdentifying multiple instances of a program? Pin
Member 16322377-Jan-05 8:07
Member 16322377-Jan-05 8:07 
AnswerRe: Identifying multiple instances of a program? Pin
Maximilien7-Jan-05 8:17
Maximilien7-Jan-05 8:17 
AnswerRe: Identifying multiple instances of a program? Pin
PJ Arends7-Jan-05 8:21
professionalPJ Arends7-Jan-05 8:21 
GeneralCDC and BItmap question Pin
Maverick7-Jan-05 7:25
Maverick7-Jan-05 7:25 
GeneralRe: CDC and BItmap question Pin
PJ Arends7-Jan-05 9:13
professionalPJ Arends7-Jan-05 9:13 

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.