#include "stdafx.h" #include <iostream>
#include <string>
using namespace std; //自己实现委托
class A {
public:
void Func(int i) { printf("afff%d\n",i); }
}; void (A::*pFunc)(int) = &A::Func; char (*pFun)(int) ;
char glFun(int a){ return 'a';} int _tmain(int argc, _TCHAR* argv[])
{
//A a;
//A* pa = &a;
//(pa->*pFunc)(11); pFun = glFun;
(*pFun)();
return ;
}