title: How to run a program in a console from Visual Studio?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1908512/c-hold-the-console-window-open">C++ - Hold the console window open?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm new to Visual Studio (actually Express), and I'm writing simple programs that write to the console in C++.</p>
  
  <p>How can one run the program in a console from Visual Studio?</p>
  
  <p>Directly running the program (ie. selecting Debug > Start Debugging) makes the program open a console window and then close.</p>
  
  <p>The way I'm doing it now is opening the command prompt and running the program from there. Can one do this from Visual Studio directly?</p>