Time t; // Instantiate object t of class Time int h, m, s; h = t.get_hour(); m = t.get_minute(); s = t.get_second(); // Initial time section cout << "The initial military time is: "; cout << ((h < 10) ? "0" : "") << h << ":" << ((m < 10) ? "0" : "") << m << ":" << ((s < 10) ? "0" : "") << s << endl; // Reset the time with the setter function t.setTime(6, 6, 8); h = t.get_hour(); m = t.get_minute(); s = t.get_second(); cout << "Now the military time is: "; cout << ((h < 10) ? "0" : "") << h << ":" << ((m < 10) ? "0" : "") << m << ":" << ((s < 10) ? "0" : "") << s << endl;