In the conditional statement in the while loop below, the extraction operator is used on an input stream object "i". When the file reaches an EOF, the loop breaks.
This doesnt make sense as I understand it EOF usually evaluates to -1 and a loop only breaks on a value of false or 0.
How can you explain this?Code:while (i >> next){ //do stuff... }