Suppose I want to read n integers from the standard input stream. Reading:
How to read N integers into a vector?
I find the recommended solution is basically:<