--- Shyan Lam <[EMAIL PROTECTED]> wrote:

> 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. 
> 
BTW I only suggested to use getch() or system("pause")
because by the way he wrote the code( voiding main,
etc) I thought he may be using any of Borland's IDE.
In those cases, if you wish to see the o/p it is
better to pause at the end rather than go for the
command line. 

If you are expecting proper C/C++ programming, I would
say "Go to hell with Windows environment" and come to
Unix/Linux environment for which C/C++ was designed
for and use the De-facto standard gcc/g++ compilers,
which I am doing currently. I goto windows with C++
only if I feel like making a Windows application(Win32
API) For consoles, I usually go for linux(Fedora Core
4). I am currently tryin to learn the linux API to
make linux GUI applications.

> 
> > 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

Which version of VC++ are you talking about??? I have
the 2005 version here(Express edition) and it doesn't
imply the system("pause").

Regards
AK

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


>-----------------------------------------~-~>
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/
 



Reply via email to