Sat Nov 08, 2008 1:23 am
while(!f.eof() {do.something()}
Sat Nov 08, 2008 1:25 am
char byte;
ifstream f("file");
while (1) {
f >> byte;
if (!f.eof()) cout << byte << '\n'; else break;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.