Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
beamer_202029-Mar-04 15:10
beamer_202029-Mar-04 15:10 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
Christian Graus29-Mar-04 15:11
protectorChristian Graus29-Mar-04 15:11 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
beamer_202029-Mar-04 15:28
beamer_202029-Mar-04 15:28 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
Ravi Bhavnani29-Mar-04 12:52
professionalRavi Bhavnani29-Mar-04 12:52 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
beamer_202029-Mar-04 14:56
beamer_202029-Mar-04 14:56 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
Ravi Bhavnani29-Mar-04 15:08
professionalRavi Bhavnani29-Mar-04 15:08 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
beamer_202029-Mar-04 15:19
beamer_202029-Mar-04 15:19 
Questionhow to read data from text file Pin
LudaLuda29-Mar-04 9:41
LudaLuda29-Mar-04 9:41 
Hey guys,

I'm having trouble reading an integer from a text file.

for example I have the following stored in a text file

------------ beginning of file------------excluding this line
H
88
------------ end of file------------excluding this line

and there are no spaces after any of the above words, each word is stored in one line.

I have an ifstream object that reads

char charVar;
int intVar;
inFile.read(reinterpret_cast<char*>(&charVar),sizeof(char));
cout <<"char value is : "<<charvar ;
infile.read(reinterpret_cast<char*="">(intVar),sizeof(int));
cout <<"int Var is : "<
AnswerRe: how to read data from text file Pin
PJ Arends29-Mar-04 9:59
professionalPJ Arends29-Mar-04 9:59 
AnswerRe: how to read data from text file Pin
David Crow29-Mar-04 10:00
David Crow29-Mar-04 10:00 
GeneralRe: how to read data from text file Pin
LudaLuda29-Mar-04 10:53
LudaLuda29-Mar-04 10:53 
GeneralRe: how to read data from text file Pin
Maxwell Chen29-Mar-04 15:17
Maxwell Chen29-Mar-04 15:17 
GeneralRe: how to read data from text file Pin
David Crow30-Mar-04 2:06
David Crow30-Mar-04 2:06 
GeneralWeird Character Allocation Problem. Pin
HAHAHA_NEXT29-Mar-04 8:54
HAHAHA_NEXT29-Mar-04 8:54 
GeneralRe: Weird Character Allocation Problem. Pin
Alexander M.,29-Mar-04 8:58
Alexander M.,29-Mar-04 8:58 
GeneralRe: Weird Character Allocation Problem. Pin
HAHAHA_NEXT29-Mar-04 9:00
HAHAHA_NEXT29-Mar-04 9:00 
GeneralRe: Weird Character Allocation Problem. Pin
David Crow29-Mar-04 10:03
David Crow29-Mar-04 10:03 
GeneralRe: Weird Character Allocation Problem. Pin
HAHAHA_NEXT29-Mar-04 10:08
HAHAHA_NEXT29-Mar-04 10:08 
GeneralRe: Weird Character Allocation Problem. Pin
Neville Franks29-Mar-04 10:33
Neville Franks29-Mar-04 10:33 
QuestionHow to get Dialog window to show updated value ? Pin
glweid29-Mar-04 8:53
glweid29-Mar-04 8:53 
AnswerRe: How to get Dialog window to show updated value ? Pin
David Crow29-Mar-04 9:54
David Crow29-Mar-04 9:54 
GeneralRe: How to get Dialog window to show updated value ? Pin
Anonymous29-Mar-04 10:20
Anonymous29-Mar-04 10:20 
GeneralRe: How to get Dialog window to show updated value ? Pin
David Crow29-Mar-04 10:24
David Crow29-Mar-04 10:24 
GeneralPower Management Pin
Alexander M.,29-Mar-04 8:50
Alexander M.,29-Mar-04 8:50 
GeneralRe: Power Management Pin
David Crow29-Mar-04 9:49
David Crow29-Mar-04 9:49 

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.