How do you check for end of line in c++?
<p>I have to accept space separated integers from user but stop when i encounter a new line.
For example: </p>

<pre><code>3 5 7 9
23 47
6
</code></pre>

<p>In this example I must store <code>3, 5, 7, 9</code> in array 1, <code>23, 47</code> in array 2, <code>6</code> in array 3.
Unfortunately, I don't know how to check for the end of line in C++. Please help me out.  </p>
