Make a new directory lab07 and change directory to it.
Perform all the exercises in this lab under this directory.
The header for the function is
void setValue(int v); // sets value to vand a suitable test is
c.setValue(5);
assert(c.getValue() == 5 );
Add any other test you like... then add the function definition
void Counter::setValue(.....){....}
(fill in the blanks) and make it work.
How does it fail? Fix it (the error is subtle, be thoughtful)!
. . . . . . . . . ( end of section CSci201 Laboratory 07 -- Classes) <<Contents | End>>