title: cin skips over the next cin only when a non-numeric value is entered
body: <p>The following code works as intended when it is given 2 integers, however if a non numeric value (like 'a') is given, it skips the second cin.</p>
  
  <pre><code>int num1;   // lesser integer value input by user
  int num2;  // greater integer value input by user
  
  cout &lt;&lt; "\n\nNumber 1: ";
  cin &gt;&gt; num1;
  
  
  cout &lt;&lt; "Number 2: ";
  cin &gt;&gt; num2;
  
  if (!cin)
  {
      cout &lt;&lt;"\nError" &lt;&lt;endl;
      return 0;
  }
  </code></pre>
  
  <p>When entering a number for the first prompt the program carries on, however if something like <code>a</code> is entered for the first prompt, it skips the second prompt and hits the error condition</p>