一般格式:
例如:
//函数声明
bool length(const string &, const string &);
//函数指针
bool (*pf)(const string &, const string &);
格式: 类型名 (*pf)(形参表)
函数指针的调用:
bool b1 = pf("hello","world");
bool b2 = (*pf)("hello","world");
函数指针的赋值:
pf = length;
pf = &length;
来源:CSDN
作者:lun55423
链接:https://blog.csdn.net/lun55423/article/details/104032192