Command Prompt Window in Visual Studio
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2529617/how-to-stop-c-console-application-from-exiting-immediately">How to stop C++ console application from exiting immediately?</a>  </p>
</blockquote>



<p>I've just started to use Visual Studio 2010 while learning C++. When I compile and run my code I briefly see the command prompt appear on the screen before disappearing and see the following in the debugger regardless of what I have written in the cpp file.</p>

<pre><code>'c++ lessons.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\c++ lessons\Debug\c++ lessons.exe', Symbols loaded.
'c++ lessons.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'c++ lessons.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'c++ lessons.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'c++ lessons.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'c++ lessons.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
The program '[5904] c++ lessons.exe: Native' has exited with code 0 (0x0).</code></pre>

<p>I've done a bit of searching to try and find a solution for myself. However; most of the suggestions involve hacks like adding in pauses or waiting for inputs and I've tried ctrl+f5. Is there anyway that I can set up the build &amp; run process in Visual Studio to display the command prompt?</p>
