摘要:
class Ctest{public:void fun(){cout<<"fuck!"<<endl;}int nTest;};void (Ctest::*ptrFun)() = &Ctest::fun;int Ctest::*ptrTest = &Ctest::nTest;int main(){Ctest *ptrCtest = new Ctest();ptrCtest->*ptrTest = 100;cout<<ptrCtest->*ptrTest<<endl<<ptrCtest-&g 阅读全文