摘要: 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 阅读全文
posted @ 2012-01-12 23:34 rookieeeeee 阅读(270) 评论(0) 推荐(0) 编辑