// 在给出的时间类Time中,增加show_time函数,以时:分:秒的格式显示时间。 #include using namespace std; class Time { public: Time(int h, int m, int s) { hour = h, minute = m, sec = s; } // ______________________ // {_______________________} void show_time() { cout << hour << ":" << minute << ":" << sec << endl; } private: int hour, minute, sec; }; int main() { Time T(5, 0, 0); T.show_time(); return 0; }