Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThe difference between debug and release version? Pin
Indrawati28-Mar-04 14:33
Indrawati28-Mar-04 14:33 
AnswerRe: The difference between debug and release version? Pin
Tim Smith28-Mar-04 14:38
Tim Smith28-Mar-04 14:38 
GeneralBinary file processing Pin
LudaLuda28-Mar-04 13:37
LudaLuda28-Mar-04 13:37 
GeneralRe: Binary file processing Pin
Christian Graus28-Mar-04 14:17
protectorChristian Graus28-Mar-04 14:17 
GeneralRe: Binary file processing Pin
LudaLuda28-Mar-04 14:45
LudaLuda28-Mar-04 14:45 
GeneralRe: Binary file processing Pin
Christian Graus28-Mar-04 14:47
protectorChristian Graus28-Mar-04 14:47 
GeneralRe: Binary file processing Pin
LudaLuda28-Mar-04 14:57
LudaLuda28-Mar-04 14:57 
GeneralRe: Binary file processing Pin
Christian Graus28-Mar-04 15:13
protectorChristian Graus28-Mar-04 15:13 
Going back to where I started, you need to create an iostream inserter/extracter for the class, like this[^]. Then you'd need to do something like

personStruct a; // whatever your variable type was, it should really be a struct, in any case.

myStream >> a;

// Now check the data member that telss you if it's a female, and treat it accordingly. I'd be incline to use just one struct, and just null the data that is not appropriate, instead of the way you are doing things now.

Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralRe: Binary file processing Pin
LudaLuda28-Mar-04 15:20
LudaLuda28-Mar-04 15:20 
GeneralMaking a macro Pin
MeterMan28-Mar-04 13:27
MeterMan28-Mar-04 13:27 
GeneralRe: Making a macro Pin
Christian Graus28-Mar-04 14:14
protectorChristian Graus28-Mar-04 14:14 
GeneralRe: Making a macro Pin
SiddharthAtw28-Mar-04 19:52
SiddharthAtw28-Mar-04 19:52 
GeneralRe: Making a macro Pin
MeterMan28-Mar-04 22:00
MeterMan28-Mar-04 22:00 
GeneralRe: Making a macro Pin
SiddharthAtw28-Mar-04 23:03
SiddharthAtw28-Mar-04 23:03 
GeneralTapi3 Pin
babur_rizwan28-Mar-04 13:04
babur_rizwan28-Mar-04 13:04 
GeneralRe: Tapi3 Pin
Roman Rodov28-Mar-04 13:29
Roman Rodov28-Mar-04 13:29 
GeneralCColorDialog Question Pin
Bassam Abdul-Baki28-Mar-04 13:00
professionalBassam Abdul-Baki28-Mar-04 13:00 
GeneralISR's Pin
G.T. Sanford III28-Mar-04 9:33
G.T. Sanford III28-Mar-04 9:33 
GeneralRe: ISR's Pin
Gary R. Wheeler28-Mar-04 11:39
Gary R. Wheeler28-Mar-04 11:39 
GeneralRe: ISR's Pin
RChin28-Mar-04 22:27
RChin28-Mar-04 22:27 
GeneralOutlook Express add-in Pin
dorutzu28-Mar-04 9:18
dorutzu28-Mar-04 9:18 
GeneralRe: Outlook Express add-in Pin
Branislav29-Mar-04 13:22
Branislav29-Mar-04 13:22 
GeneralRe: Outlook Express add-in Pin
dorutzu29-Mar-04 22:13
dorutzu29-Mar-04 22:13 
GeneralRe: Outlook Express add-in Pin
Branislav30-Mar-04 1:42
Branislav30-Mar-04 1:42 
Generalthreads and owning classes Pin
chrismc91228-Mar-04 7:14
chrismc91228-Mar-04 7:14 

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.