#include "iostream"
using namespace std;
void myFun(int a, int b)
{
cout << "a:" << a << " b:" << b << endl;
}
void myFun(int a)
{
cout << "a:" << a << endl;
}
typedef void(*myPTypeFun)(int a, int b);//声明了一个指针的数据类型,类似int*
typedef void myPTypeFun01(int a);//声明了一个数据类型,类似int
void main()
{
myPTypeFun fp = NULL;
fp = myFun;
fp(1, 2);//调用myFun(int a, int b)
myPTypeFun01 *fp2 = NULL;
fp2 = myFun;
fp2(3);
system("pause");
}