1、函数指针形参
void func1(const string &, bool(const string &,const string &));
2、返回指向函数的指针
int (*ff(int))(int *,int);
这个声明的含义为:
ff(int),将ff声明为一个函数,它带有一个int型的形参,该函数返回
int (*)(int *,int);
可以如下定义
typedef int (*PF) (int *,int);
PF ff(int);
3、指向重载函数的指针
extern void if(vector<double>);
void (*pf1)(vector<duoble>);
pf1=&ff;