diablosilvermoon (6) posted about screen pause and
Jesse (12) replied him :
"....Using the command "system("pause") BUT that would leave the message "Press any key to continue ..." So you use this command "system("pause>nul")" and it will pause the screen with-out any message"
it is true that system("pause") pauses the screen and does not allow it to disappear quickly and it leaves the message "Press any key to continue ..."
but system("pause>nul") does not pause the screen and without message . It does the contrary by me : the screen disappears quickly as long as I press any key in my keyboard .
You can try it by yourself .
[code]#include <iostream>
using namespace std;
int main()
{
cout <<"enter your number:";
system("pause>nul");
}[code]