Description: Define a class watches, including three private members, namely hour, minute, second, on this basis, please reload increment operator (++) and decrement operator (-) for the class member functions, making WATCH objects can be based on the number of seconds of time, pay attention to increment and decrement operators Operators have the prefix and suffix computing two kinds of operations. Also require the definition of a constructor with parameters defined time setting function and time display function.
To Search:
File list (Check if you may need any files):
cpp1.cpp