title: C++ Loop in menu
body: <p>In my code there is a problem where even when I enter 'Q' or 'q' the program keeps looping the menu. What's wrong here? Here is the code:</p>
  
  <pre><code>{
      char selection;
      do {
          cout &lt;&lt; "Add a county election file         A" &lt;&lt; endl;
          cout &lt;&lt; "Show election totals on screen     P" &lt;&lt; endl;
          cout &lt;&lt; "Search for county results          S" &lt;&lt; endl;
          cout &lt;&lt; "Exit the program                   Q" &lt;&lt; endl;
          cout &lt;&lt; "Please enter your choice: ";
          cin &gt;&gt; selection;
      } while ((selection != 'Q' || selection != 'q'));
      return 0;
  }
  </code></pre>