CS12, Lab 1
Topics:
·
Using
user-defined types
·
Assembling
a project with multiple files
·
Proper
use of #include statements
To do:
·
Copy
the files counter.h
and counter.cpp
·
Create
main.cpp that does the following:
·
Initialize
a counter object
·
Increment
the counter 15 times
·
Print
out the value of the counter after each increment (should show 1-15)
·
Zero
the counter
·
Print
out the value of the counter again (should be 0).
Extra
credit:
The counter
has an upper limit, beyond which it will not advance. Write a short test program that determines the max counter value.