C++ what is wrong with this do while loop
<p>I am trying to input a string. It's working fine when I input something like <code>John</code>.</p>

<p>But if I input something like <code>John Smite</code> I end up in an endless loop and a terminal crash.</p>

<pre><code>string fullname;

do{
    cout &lt;&lt; "Please input the Full Name of the user: ";
    cin &gt;&gt; fullname;
}while(fullname=="");
</code></pre>
