Comments embedded...
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Mr Anoop Kammaran
> Sent: Friday, February 17, 2006 9:21 PM
> To: [email protected]
> Subject: Re: [C-Paradise] help
>
>
>
> Do something to pause at the end of the program. Some
> people use getch() for this. But I recommend
> system("pause").
I would recommend neither. The correct behavior for console application is
the console window should close when the application ends. Forcing the
console window remains open actually reduce the usefulness of the program
for running in a batch environment or as a separate process.
If run in debug mode from within the IDE, simply add a breakpoint before
main() returns.
Otherwise, get the habit to run the program from within an opened command
prompt window.
> Then, use your mouse to highlight the
> output and then, copy-paste. I am hoping here that you
> are not using Turbo C++ IDE. If you are change over to
> Microsoft Visual C++ 2005.
With VC++, there is even less reason to use getch() or system("pause").
When run without debugging (ctrl-F5), VC++ automatically adds a "Press any
key to continue" when the console program ends.
Shyan
>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at
http://www.eScribe.com/software/C-Paradise/
>------------------------------------------_->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/C-Paradise/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/