#include <iostream>
using namespace std;
class Time
{
public:
void show_time();
void cin_time();
private:
int hour;
int min;
};
int main()
{
Time t;
t.cin_time(); //调用一律用.
t.show_time();
return 0;
}
void Time::show_time() //注意用::
{
cout<<"hour:"<<hour<<endl;
cout<<"hour:"<<min<<endl;
}
void Time::cin_time()
{
cin>>hour;
cin>>min;
}