T Tallyrand Solid State Member Messages 8 Jun 14, 2004 #1 #include <iostream> int main () { using namespace std; cout << "Text"; return 0; } ---------------------------------------------------------------------------------- the console screen shuts whenever i open it how would i pause it so it wont shut.
#include <iostream> int main () { using namespace std; cout << "Text"; return 0; } ---------------------------------------------------------------------------------- the console screen shuts whenever i open it how would i pause it so it wont shut.
Z zoerb Baseband Member Messages 85 Jun 15, 2004 #2 try including conio.h and call the function getch();
S spartanM19SSM In Runtime Messages 105 Jun 15, 2004 #3 Well, first, are you using C++.NET? If you are then instead of that use cin.ignore(); on a line before the return statement...
Well, first, are you using C++.NET? If you are then instead of that use cin.ignore(); on a line before the return statement...
P petogaz In Runtime Messages 164 Jul 15, 2004 #4 if you're using DevC++ include system("PAUSE") on a line before return 0.
D Deathwalker Baseband Member Messages 68 Jul 22, 2004 #5 If you include the windows.h file you can use the Sleep();command, with the duration within the parenthesis.
If you include the windows.h file you can use the Sleep();command, with the duration within the parenthesis.