Open main menu

CDOT Wiki β

Changes

Console Class - OOP344 20121

556 bytes added, 02:03, 19 January 2012
Step one
You may assume that it is the calling program's responsibility to ensure that the string array is large enough to handle maxStrLength characters and that the starting screen position provides enough room (on the screen) for the field, etc.
 
====Step two====
''First run your program with cio_test.cpp and make sure it passes all the tests up to and including "4.16". If all tests are passed continue with test two.
 
=====IsTextEditor=====
If '''IsTextEditor''' is true and the value of '''*strOffset''' is changed at any time, then terminate the edit function immediately and return '''0''';
=====ReadOnly=====
If '''ReadOnly''' is true, then edit function works exactly like before, except that any modification to the data (the content of the '''str''' string) will be ignored.
 
and ReadOnly
===Tester Program===