title: Confused about while check
body: <p>I'm confused about this code:</p>
  
  <pre><code>#include "stdafx.h"
  #include "std_lib_facilities.h"
  
  int main()
  {
      string name_one;
      string name_two;
      string name_three;    
  
      cout &lt;&lt; "Please enter a name: ";
      cin &gt;&gt; name_one;
      cout &lt;&lt; "\nReading data...";
  
      while (name_one.empty())
      {
          cout &lt;&lt; "\nFailed!";
          cout &lt;&lt; "Please enter a name: ";
          cin &gt;&gt; name_one;
          cout &lt;&lt; "\nReading data...";
      }
  
      cout &lt;&lt; "Completed!\n";
  
      keep_window_open();
      return 0;
  }
  </code></pre>
  
  <p>It is very easy, but when I debug it and for example I don't write anything but just press Enter, it doesn't do anything. Just keeps showing me a flashing underscore under the line, and if I keep pressing Enter it just jumps line by line. Why does the program not read the condition? What I want is that if the user doesn't write anything, the condition in the <code>while</code> starts!</p>