C++ Input Stream
<p>I have a program that work with data which is paste to console. For example when the program is run and I paste </p>

<pre><code>delete 54545
add 4324
</code></pre>

<p>the program call delete function with parameter 54545, but wait for enter after 4324 to call second function. And I have no idea how to call it without press enter.</p>

<p>example</p>

<p>first line is how many functions should call. and I paste this at console</p>

<pre><code>3
delete 4324324
add 324
add 4324
</code></pre>

<p>the code is like that</p>

<pre><code>...
int count;
string func, parameter;
cin &gt;&gt; count;
for (int i=1; i&lt;=count;i++) {
    cin &gt;&gt; func;
    switch(func) {
       case "add": cin &gt;&gt; parameter; add(parameter); break;
       case "delete": cin &gt;&gt; parameter; delete(parameter); break;
    }
}
...
</code></pre>

<p>all function is called but the last one is not...
in this example last function is add and the program wait to press enter after</p>

<pre><code>case "add": cin &gt;&gt; parameter
</code></pre>

<p>to call function.</p>
