title: How do I get my program to wait for keyboard input?
body: <p>Okay so I was just doing a little practice when I came to a problem that I've never had before.</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
  string empname = "";
  int empage = 0;
  char yes = 'y';
  
  cout &lt;&lt; "Please enter employee name:" &lt;&lt; endl;
  cin &gt;&gt; empname;
  cin.get();
  cout &lt;&lt; "Your name is " + empname + " is this correct? (yes/no):" &lt;&lt; endl;
  
  if (yes)
  {
      cout &lt;&lt; "good" &lt;&lt; endl;
  }
  else
  {
      cout &lt;&lt; "Please try again" &lt;&lt; endl;
  }
  
  cout &lt;&lt; "Please enter employee age:" &lt;&lt; endl;
  cin &gt;&gt; empage;
  cin.get();
  cout &lt;&lt; "Your age is " + empname + " is this correct? (yes/no):" &lt;&lt; endl;
  if (yes)
  {
      cout &lt;&lt; "good" &lt;&lt; endl;
  }
  else
  {
      cout &lt;&lt; "Please try again" &lt;&lt; endl;
  }
  }
  </code></pre>
  
  <p>This executes as a console program, but after line 11 [include whitespace] (cout &lt;&lt; "Please enter employee name:\t" &lt;&lt; endl;), it just skips past everything, and says press ENTER to continue. What am I doing wrong.</p>