C++程序设计 |谭浩强第八章课后题 1.找出错误并运行(时钟) #include <iostream> using namespace std; class Time { public: int hour; int minute; int sec; }; Time t; void set_time() { cin>>t.hour; cin>>t.minute; cin>>t.sec; } void show_time() { cout<&