First page
Back
Continue
Last page
Graphics
TESTING FOR END OF INPUT
WHILE ( cin >> x ) { /* ... */ }
Result of cin>>x is true if it accomplished an input.
Result of cin>>x is false if it failed on input.