标签:日常
#include<iostream>int main()
{Time t1(10,36,5);
int p = &t1.hour;
cout<< p <<endl;
t1.get_time();
Time p2 = &t1;
p2-> get_time();
void(Time::p3)();
p3 = &Time::get_time;
(t1.*p3)();
return 0;
}
标签:日常
原文地址:http://blog.51cto.com/13615683/2096686