#include<iostream>
using namespace std;
class time
{
public:
int hour;
int minute;
int sec;
};
int main()
{
time t1;
cin>>t1.hour;
cin>>t1.minute;
cin>>t1.sec;
cout<<t1.hour<<":";
cout<<t1.minute<<":";
cout<<t1.sec<<endl;
}
标签:cout,hour,int,练习,cin,c++,t1 From: https://www.cnblogs.com/duzhangdan/p/17397645.html