通过typedef来简化函数指针 typedef int (*FUN)(int a,int b); //声明FUN是一个函数指针类型 Fun funp; //funp为一个返回整型和两个整数形参的函数指针