dumb command line question
-
Hi, i've got the following line in my app: printf("Press Enter to continue\n"); ... clrscr(); i want to display the message until the user presses enter and then clear the screen. what command should i use for that? I need only ANSI C commands i remember that in pascal you can use readln; thanks!
-
Hi, i've got the following line in my app: printf("Press Enter to continue\n"); ... clrscr(); i want to display the message until the user presses enter and then clear the screen. what command should i use for that? I need only ANSI C commands i remember that in pascal you can use readln; thanks!
How about:
do
{
printf(...);
} while (getch() != 0xa); // or 0xd
clrscr();
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Hi, i've got the following line in my app: printf("Press Enter to continue\n"); ... clrscr(); i want to display the message until the user presses enter and then clear the screen. what command should i use for that? I need only ANSI C commands i remember that in pascal you can use readln; thanks!