Stream Input
Stream input always ignores white space.
while (cin >> intval) { // process intval ...}// reach this point on end of input...
Visualize >> and << as arrows
- Input operator, >> x : points data into x
- Output operator, << x : copies data out of x