what does >> do in c++
<p>i'm going through google university section on c++ and i'm not sure what this piece of code does:</p>

<pre><code>if (!(cin &gt;&gt; input_var)) {

    cout &lt;&lt; "you entered a non-numeric. Exiting..." &lt;&lt; endl;
    break;

}
</code></pre>

<p>What does the statement inside the if statement actually do here?</p>

<p>thanks!</p>
