// demo program for comp 1672 // uses the Time class #include #include "time.h" using namespace std; int main() { Time end_1672; // create a Time variable Time start_1672(11, 0, 0); // create a Time variable, initialize it cout << "Comp 1672 starts at "; start_1672.print(); // try out the print function cout << endl; end_1672.set(11, 0, 0); // try out some of the utility functions end_1672.add_minutes(50); cout << "Comp 1672 ends at "; end_1672.print(); cout << endl; return 0; }