//-------------- main.cpp -------------- #include // for cout, cin #include "digitime.h" // for our Timer and Display classes using namespace std; int main() { Timer t; // Create and initialize a Timer object named "t." cout << "Here's the initial value of the timer: "; t.Show(); cout << "\n\n"; t.Set(); // Allow the user to set the timer's value. cout << "Here are the new settings: "; t.Show(); cout << "\n\n"; cout << "Now we run it for ten minutes . . .\n"; for (int i = 0; i < 10; i++) { t.Increment(); t.Show(); cout << '\n'; } // Freeze the screen until the user presses a key. cout << "\nPress any key and ENTER to conclude processing: "; char any; cin >> any; cout << "\nPROCESSING COMPLETED ... GOOD BYE\n"; }