title: C++ Switch Statement - Giving player another chance to choice
body: <p>This is a block of code from a book I've been studying and trying to improve upon, but I'm having trouble finding a way to give the player another chance at selecting the difficulty after entering the default choice. This is a very simple console text-based game and when the player chooses an incorrect choice, the game doesn't allow the player to re-choose. </p>
  
  <pre><code> int _tmain(int argc, _TCHAR* argv[])
   {
       cout &lt;&lt; "Difficulty Levels\n\n";
       cout &lt;&lt; "1 - Easy\n";
       cout &lt;&lt; "2 - Normal\n";
       cout &lt;&lt; "3 - Hard\n\n";
  
       int choice;
       cout &lt;&lt; "Choice: ";
       cin &gt;&gt; choice;
  
  
       switch (choice)
       {
        case 1:
           cout &lt;&lt; "You picked Easy\n";
           break;
       case 2:
           cout &lt;&lt; "You picked Normal\n";
           break;
       case 3:
           cout &lt;&lt; "You picked Hard\n";
           break;
       default:
           cout &lt;&lt; "Your choice is invalid.\n";
       }
  
       system("pause");
       return 0;
   }
  </code></pre>