|
From: Hossein H. <ult...@em...> - 2003-07-10 11:25:17
|
Dear Jilly, > for MSDOS add the following line: > > system( "PAUSE" ); > > or simply open a command prompt and run the executable from there. You have another way as well: Append the following line at the end of your programme (instead of the above line): std::cin.get(); Note that this is the standard way of achieving your desire in C++. Not only it works in C++, but also it works in all OSs. This, furthermore, means that it is portable. Note that to use "cin" you need to have iostream included in your programme. I.e., add the following line at the top of your programme: #include <iostream> Regards, --Hossein -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |