title: C++ Console not taking keyboard input
body: <p><em>Resolved</em></p>
  
  <p>I'm using Microsoft Visual Stuido 2017 and built a basic console utility program. When using the debug mode(F5) everything works flawlessly. Then I chose to batch build and see if I could run the .exe. The .exe runs my welcoming message and even greets me with a flashing cursor but won't accept any kind of keyboard input. I try hitting random letters on my keyboard and none pop up; oddly though alt + F4 works so my keyboard likely isn't the issue. I am honestly one hundred percent clueless as to what it might be. It should be noted my save location differs in a few ways. Could it be an issue with my system and not the program?</p>
  
  <p><a href="https://i.stack.imgur.com/w5aWF.png" rel="nofollow noreferrer">Screenshot</a></p>
  
  <p><em>I have iostream and other appropriate C++ standard libraries included through my header files</em></p>
  
  <pre><code>int main() {
      cout &lt;&lt; "Welcome to FTC console commands" &lt;&lt; endl 
          &lt;&lt; endl &lt;&lt; "Please enter a command or 'HELP' for help" &lt;&lt; endl 
          &lt;&lt; "You can exit at anytime by typing 'EXIT'" &lt;&lt; endl; //Welcome
  
      while (true) { //main loop
  
          league1 = load();
  
          string Input; //Input
          cin &gt;&gt; Input;
  
          system("CLS");
  
          if (Input == "EXIT") break; //Checking where to go depending on Input
          else if (Input == "ADD_MATCH") addMatch(league1);
          else if (Input == "ADD_TEAM") addTeam(league1);
          else if (Input == "HELP") help();
          else if (Input == "RANK") rankings(league1);
          else if (Input == "SAVE") save(league1);
          else cout &lt;&lt; "Invalid Input... try again or see 'HELP'" &lt;&lt; endl;
      }
      return 0;
  }
  </code></pre>