Isthe same asCode:while(cin)?Code:while(!cin.eof())
This is a discussion on Condition question within the C++ Programming forums, part of the General Programming Boards category; Is Code: while(cin) the same as Code: while(!cin.eof()) ?...
Isthe same asCode:while(cin)?Code:while(!cin.eof())
no
cin can be in a fail state due to error even when eof not riched yet
If I have eight hours for cutting wood, I spend six sharpening my axe.