Re: Stopping command window from closing
From: Mark P (mot_at_my.real.email)
Date: 02/26/05
- Next message: Vince Morgan: "Re: typedef set<..>"
- Previous message: wasknijper: "Re: hi everybody m new 2 this groupn as i m starting with c........"
- In reply to: Gareth: "Stopping command window from closing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Feb 2005 00:51:34 GMT
Gareth wrote:
> I'm trying to learn c++ with Borland C++ Builder 6.
>
> It seems to be a fairly straightforward program to use using the "console
> wizard" for basic c++ textbook lessons (File>>New>>Other>>Console Wizard).
>
> But why do I need to insert the following line of code in to the source to
> prevent the XP command window from closing?:
>
> std::cin.get();
>
> Why doesn't the window automatically remain open and wait for a closure
> click to close?
>
> Gareth.
>
>
Why don't you open a command window first (Start-Run, cmd) and then run
your program from within it?
- Next message: Vince Morgan: "Re: typedef set<..>"
- Previous message: wasknijper: "Re: hi everybody m new 2 this groupn as i m starting with c........"
- In reply to: Gareth: "Stopping command window from closing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|