Re: [Dev-C++] How do I pause a program?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Louis G. <lg...@ya...> - 2003-03-04 19:19:40
|
There is another way... try getch() instead of system()
--- Tina Barnes <t_b...@co...> wrote:
> This is one way, although there are probably others. Without this, my
> dos window closes before I can see it...
>
>
> // Tina Barnes
> //
>
> #include <iostream> // For cout and cin
> #include <cstdlib> // For system("PAUSE")
> using namespace std;
>
> int main()
> {
> // your program goes here...
> system("PAUSE");
> return 0;
> }
>
> ----- Original Message -----
> From: Giligun
> To: dev...@li...
> Sent: Tuesday, March 04, 2003 9:32 AM
> Subject: [Dev-C++] How do I pause a program?
>
>
> I want it to display some information until a button
> is pressed. The Bloddshed software I have has the .h
> file with some command to do, but I wanna know how it
> works without this.
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost
> and
> disoriented. TotalView can help you find your way. Available on major
> UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
|