Open main menu

CDOT Wiki β

Changes

OOP344 Assignment One

2 bytes added, 13:36, 14 September 2009
no edit summary
Ensures that any output sent to the screen is displayed on the screen (that is, this function flushes the output buffer).
===int io_getch(void)=== returns  Returns the virtual key code identifying the key pressed by the user. This function first displays all output that has been sent to the screen (if any is pending to be displayed), waits for a key to be pressed and returns an int value that uniquely identifies the key pressed. To accommodate platform dependency, define the following symbolic names for the non-ASCII keys in each platform:
*'''UP_KEY''' - the up arrow key value,