//DISPLAY 12.3 Application File Using DigitalTime //Application file timedemo.cpp (your system may require some suffix //other than .cpp): This program demonstrates use of the class DigitalTime. #include #include "dtime.h" using namespace std; int main( ) { DigitalTime clock, oldClock; cout << "Enter the time in 24-hour notation: "; cin >> clock; oldClock = clock; clock.advance(15); if (clock == oldClock) cout << "Something is wrong."; cout << "You entered " << oldClock << endl; cout << "15 minutes later the time will be " << clock << endl; clock.advance(2, 15); cout << "2 hours and 15 minutes after that\n" << "the time will be " << clock << endl; return 0; }