Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 3
Member Avatar for akmalhisyam

I have question, why when I don't put the "inFile.ignore()" line, the program doesnt work. What is the thing that the line ignore? [code=c]while(1){ inFile.getline(name,50); inFile>>ass1>>ass2>>ass3; inFile.ignore(); if(inFile.eof()) break; cout<<name<<" "<<ass1<<" "<<ass2<<" "<<ass3<<endl; }[/code] here is the content of the input file : akmal 3 2 1 akmal hisyam 1 …

Member Avatar for akmalhisyam
0
3K