Changes

Jump to: navigation, search

OOP344 Assignment Two

6 bytes added, 16:27, 20 November 2009
m
IO_Label OOP344 northWind87: changed char* to const char*
''Note that '''data''' is a void pointer; to use it here, you must cast it to a character pointer!''<br />
<big><pre>
IO_Label(const char* str, int row, int col, int len = -1);
</pre></big>
If '''len''' is greater than zero, This constructor will create an IO_Label by allocating len + 1 characters pointed by IO_Field::_data, and then the contents of '''str''' is copied into IO_Field::_data up to '''len''' characters. '''_len''' attribute is set to '''len''';

Navigation menu