Open main menu

CDOT Wiki β

Changes

OOP344 Assignment One

424 bytes added, 00:03, 5 October 2009
void io_displayMenuItem(..........)
The menuItem argument will be always shown surrounded by two characters.
* If status is zero, then at row and col a space will be shown, then the menuItem and finally followed by another space.If the length of menuItem is less than (len-2), then enough spaces will be printed up to make the length (len-2).<pre>"Hello"</pre> with 10 as len will be printed as : <pre>" Hello "</pre>
* If status is non-zero, then at row and col format[0] will be shown then the menuItem and finally format[1].If the length of menuItem is less than (len-2), then enough spaces will be printed up to make the length (len-2).<pre>"Hello"</pre> with 10 as len and <code>"[]"</code> as format chars, will be printed as : <pre>"[Hello ]"</pre>
After the Menu item is displayed, the cursor is always placed under the first character of mentItem. (position row and col+1)