C++ Verify the first input of two on the same line : <pre><code>string a, b;
cin &gt;&gt; a &gt;&gt; b;
if (a == "yes") break;
...
</code></pre>

<p>Why does this not work the way it looks like it should work? If the user enters "yes please" or "yes" the program should break out of whatever loop it's in, but that's not what happens. The console just prints a line feed and waits. What am I doing wrong here?</p>
