title: Advanced switch statement within while loop?
body: <p>I just started C++ but have some prior knowledge to other languages (vb awhile back unfortunately), but have an odd predicament. I disliked using so many IF statements and wanted to use switch/cases as it seemed cleaner, and I wanted to get in the practice.. But..</p>
  
  <p>Lets say I have the following scenario (theorietical code):</p>
  
  <pre><code>while(1) {
  
    //Loop can be conditional or 1, I use it alot, for example in my game
    char something;
    std::cout &lt;&lt; "Enter something\n --&gt;";
    std::cin  &gt;&gt; something;
  
    //Switch to read "something"
    switch(something) {
      case 'a':
        cout &lt;&lt; "You entered A, which is correct";
        break;
      case 'b':
        cout &lt;&lt; "...";
        break;
    }
  }
  </code></pre>
  
  <p>And that's my problem. Lets say I wanted to exit the WHILE loop, It'd require two break statements?</p>
  
  <p>This obviously looks wrong:</p>
  
  <pre><code>case 'a':
    cout &lt;&lt; "You entered A, which is correct";
    break;
    break;
  </code></pre>
  
  <p>So can I only do an IF statement on the 'a' to use break;? Am I missing something really simple?</p>
  
  <p>This would solve a lot of my problems that I have right now.</p>