c++使用指针做出类似C#委托的功能

c++使用指针做出类似C#委托的功能



可以将typedef int(*haitao) (int age1, int age2);这行代码放入stdafx.h文件中,效果是一样的


typedef int(*haitao) (int age1, int age2); 这行代码相当于C#中声明一个委托


FR:海涛高软(hunk Xu)