Re: [Dev-C++] How do I pause a program?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Tina B. <t_b...@co...> - 2003-03-04 18:32:01
|
Here's another way to pause a program...
// how to pause program
// uses ENTER key to continue
#include <iostream> // For cout and cin
#include <cstdio> // For getchar ()
using namespace std;
int main()
{
cout << "Some sort of output to screen!" << endl;
cout << "Press ENTER to continue..." << endl;
getchar ();
cout << "Print something else..." << endl;
cout << "Press ENTER to continue..." << endl;
getchar ();
return 0;
}
----- Original Message -----=20
From: Giligun=20
To: dev...@li...=20
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=20
for complex code. Debugging C/C++ programs can leave you feeling lost =
and=20
disoriented. TotalView can help you find your way. Available on major =
UNIX=20
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
|