Define a class counterType to implement a counter. Your class must have a private data member counter of type int and functions to set counter to the value specified by the user, initialize counter to 0, retrieve the value of counter, and increment and decrement counter by one. The value of counter must be nonnegative.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here