专注技术开发
#include <iostream>using namespace std;
class A{public: A(); void test(){cout<<"test"<<endl;}public: void (A::*p)(void);};A::A(){ p = A::test;}
int main() { A a; (a.*a.p)(); return 0; }
posted on 2008-04-16 11:22 大海 阅读(426) 评论(0) 编辑 收藏 引用
Powered by: C++博客 Copyright © 大海