getch () action

getch ():
where the header file: the conio.h
purpose of the function: reads a character from the console, but does not display on the screen of
the function prototype: int getch (void)
Returns: reading characters
example:
char CH; or int CH;
getch (); or ch = getch ();
with getch (); will wait for you to press any key to continue executing the following statement;
with ch = getch (); then will wait for you to press any key to the key corresponding to the character ASCII code is assigned to ch, then execute the following statements.

Guess you like

Origin www.cnblogs.com/cs0915/p/12598112.html