How to identify a new line in C++?
<p>I have to take integer input to an integer array. I have to identify the newline also in input.
To be more clear, I have an example.
The input I am giving is:-</p>

<pre><code>2
3
4

45
6
78
45

34
34
</code></pre>

<p>I want to process the input according to the newline in the input.</p>

<p>The programming language is C++ and the compiler is g++. I don't want to store the newline in the array; I just want to process accordingly.</p>
