On Thu, May 15, 2008 at 9:33 PM, Brett McCoy <[EMAIL PROTECTED]> wrote:
> On Thu, May 15, 2008 at 4:18 PM, Corey McKee <[EMAIL PROTECTED]> wrote:
>
>> try using system ("pause"); just before the return 0; this should allow the
>> terminal window to stay open until you press a key to continue.
>>
>
> Alternatively, set a breakpoint on the last line of the program. When you
> run by pressing F5, it will stop at that line until you make it continue (or
> terminate).
>
> For that matter, I thought console programs is Visual C++ Express 2005/2008
> were automatically paused before returning when running in debug mode....

They do if you use Ctrl-F5 instead of just F5. No breakpoints or
annoying system("pause") that can get left in, required.

-- 
PJH

http://shabbleland.myminicity.com/tra

Reply via email to