Hit <ENTER> to continue...
Hi folks!I was wondering if anyone knows how can i make my program to wait for the user to press <ENTER> and then continue with the rest of the commands.In a Pascal program example:
Code:
........................
writeln("Hit <ENTER> when you are ready...");
readln;
.....(rest of code).....
Is there anyway to do the same thing in C?I tried with scanf() function but it doesnt work the way i want to.
PS:I tried to use the system() function with a parameter like "sleep 2" which causes the program to pause for 2
seconds(in a Unix system)-but as you probably understand,it isnt very convenient...