title: How to terminate an integer-input loop with a character?
body: <p>New to Stack and C++.
  I want to terminate a loop that regurgitates numbers fed to it with a character. Say, Q for Quit. The following program is functional and free of syntax errors. How can I terminate this loop without editing the input parameter?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  int main()
  {
  
      bool run = true;
  
      while(run)
      {
      cout&lt;&lt;"Enter your two favorite numbers."&lt;&lt;endl;
  
      int num1;
      int num2;
  
      cin&gt;&gt;num1&gt;&gt;num2;
  
      cout&lt;&lt;"You entered "&lt;&lt;num1&lt;&lt;" and "&lt;&lt;num2&lt;&lt;"."&lt;&lt;endl;
  
      }
  
      return 0;
  
  }
  </code></pre>