Open main menu

CDOT Wiki β

Changes

OOP344 Assignment One

24 bytes added, 07:35, 28 September 2009
int io_displayflag(..........)
Allows the user to display a checkbox at row and col on the screen. Depending on the value of status; being zero or non-zero, the checkbox will be checked or unchecked respectively.
The checkbox will be always shown using 3 characters; two surrounding characters and one character in the middle as the checkmark. If the status argument is zero, then instead of the checkmark check-mark a space will be replaced with space. The 3 characters and held in “format” array; format[0] and format[2] are surrounding characters and format[1] is printed on the check-markscreen.
The 3 characters held in the “format” array; format[0] and format[2] are surrounding characters and format[1] is the check-mark. After the checkbox is displayed, the cursor is always place under the checkmark check-mark (in centre).
====int io_flag(..........)====