Open main menu

CDOT Wiki β

Changes

OOP344 Assignment One

10 bytes added, 00:04, 5 October 2009
int io_menuItem(..........)
====int io_menuItem(..........)====
<big>int io_menuItem(const char *format, const char *menuItem, int row, int col, int len, int* status);</big>
io_menuItem() allows the user to make a single item selection. "status" points to the status of the selection, that can be zero or non-zero. If "status" is initially set to anything but zero, io_menuItem() corrects value to one. "format" holds the shape of the selection indicator as io_displayMenuItem() function.
*If the user input is any of the printable keys (' ' < key <= '~') excluding space, it should be ignored (no action taken). If the user input is any of the function keys, the function is terminated returning the key.
*If the user input is SPACE, then the *status is set to one, menu item is displayed and function is terminated returning space.
 
==Platforms==
===Windows Visual C++===