|
From: Justin F. <jus...@gm...> - 2004-11-07 15:46:57
|
Another function to implement it is:
System("PAUSE");
Best Wishes
On Sun, 07 Nov 2004 14:39:09 +0900, Peter Dennis <don...@ne...> wrote:
> Hi Haim,
>
> I am no expert but I found the following in a book i have.
> In your main() function insert the following lines:
> std::cout << "Press the enter key to exit";
> std::cin.ignore(std::cin.rdbuf()->in_avail() + 1);
>
> This just waits for the user to press the enter key.
>
> Not exactly sure what the std::cin.ignore stuff does as I said I copied
> it from a book :)
>
> Peter.
>
>
>
>
> Haim Bishop wrote:
>
> >Hello
> >I have installed Dev-C++ 4.9.9.0
> >I am using windows xp
> >When I run a program I have wrote
> >opens the dos window and then it closes.
> >How can I do that it will stay open after the
> >program ends to run.
> >Thank you.
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by:
> >Sybase ASE Linux Express Edition - download now for FREE
> >LinuxWorld Reader's Choice Award Winner for best database on Linux.
> >http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >
> >
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
--
Thanks
Z.J.
|