View Single Post
Old Oct 27th, 2005, 12:24 AM   #11
nindoja
Programmer
 
Join Date: Jun 2005
Posts: 92
Rep Power: 4 nindoja is on a distinguished road
Here is what you need to do:
cin >> i
This will keep the window open to see the results. Or, if you know that your OS has a "PAUSE" command, you can do the following:
[code]#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
......
cout << endl;
system("PAUSE");
return 0;
}
nindoja is offline   Reply With Quote