// program to test Clock class (briefly) #include #include #include "clock.h" int main(void) { int h, m, s; int count; cout << "Enter starting time (hours minutes seconds):\n"; cin >> h >> m >> s; cout << "Enter number of times to increment:\n"; cin >> count; Clock aClock = Clock(h, m, s); aClock.print(); for (int i = 0 ; i < count; i++) { aClock.increment(); aClock.print(); } cout << "Resetting .... \n"; aClock.reset(h, m, s); aClock.print(); return EXIT_SUCCESS; }