help with system("PAUSE")
-
I need to know how to pause a program for a specific amount of time and then show the "Press any key to continue..." line that is shown by system("PAUSE"). i've seen people do this before, but i've never asked them how to. dudeoffrance
I'm assuming you're writing a console application? This code works for me #include "stdafx.h" #include "Windows.h" #include "conio.h" int main(int argc, char* argv[]) { Sleep(5000); //wait 5 seconds printf("Wait..."); getch(); //get any key from the user printf("\nHello World!\n"); return 0; }
-
I need to know how to pause a program for a specific amount of time and then show the "Press any key to continue..." line that is shown by system("PAUSE"). i've seen people do this before, but i've never asked them how to. dudeoffrance
Is this a console or UI application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Is this a console or UI application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
DavidCrow wrote: Is this a console or UI application? look like to be CONSOLE application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Is this a console or UI application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Ok, Budric's response was more or less correct. It's been six days. Has this been resolved?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown