Hey everyone, I am new so be nice.
I was wondering how to pause the program to let the user read the output so far I have (note that this program is stupid and was just to figure out how to pause the program):
#include <iostream.h>
#include <stdlib.h>
int main()
{
int i;
int f;
cout<<"Hello world!\n";
cin>>i;
cout<<"Counting from 0 to "<<i<<endl;
cout<<"----------"<<endl;
for (f = 0; f <= i; f++) {
cout<<f<<endl;
system("PAUSE");
}
cout<<"----------"<<endl;
system("PAUSE");
return 0;
}
this program does not pause where I put 'system("PAUSE");' any solutions will be greatly appricated. Thanks in advance.