#include <iostream>
using namespace std;
class Time
{
public:
Time()
{
hour=0;
minute=0;
sec=0;
}
void set_time();
void show_time();
int hour;
int minute;
int sec;
};
void Time::set_time()
{
cin>>hour;
cin>>minute;
cin>>sec;
}
void Time::show_time()
{
cout << hour << ":" << minute << ":" << sec << endl;
}
int main()
{
Time t1;
Time *pt;
pt=&t1;
t1.show_time();
pt -> set_time();
t1.show_time();
int *p1;
p1=&t1.hour;
*p1=11;
//pt -> show_time();
void(Time::*p2)();
p2=&Time::show_time;
(t1.*p2)();
return 0;
}