#include <iostream>
using namespace std;
class Time
{
public:
	int hour;
	int minute;
	int sec;
};
Time t={10,20,30};                               //定义Time类对象t，并对对象中的数据成员
int main()                                        初始化
{
	cout<<"hour:"<<t.hour<<endl;
	cout<<"minute:"<<t.minute<<endl;
	cout<<"sec::"<<t.sec<<endl;
    return 0;
}
