Press Enter To Continue
Posted: Sat Jan 02, 2010 12:09 pm
This function is very simple, but it can come in handy when making text-based rpg's. Unlike most "wait" functions, it does not display the characters entered and only accepts the enter (carriage return) to continue.
Required Libraries
stdio.h
conio.h
Required Libraries
stdio.h
conio.h
Code: Select all
void Wait()
{
printf("\nPress <ENTER> To Continue . . .");
char kbInput;
do
kbInput = _getch();
while ((int) kbInput != 13);
printf("\n");
}