函数声明一般是这样: int fun(int, double); 对应函数指针(pointer to function)的声明是这样: int (*pf)(int, double); 可以这样使用: pf = &fun; ? ?
基于4个网页-相关网页
cast and pointer to function 强制和指向函数的指针
pointer to member function 成员函数指针 ; 成员函数指标 ; 成员函式指标 ; 成员指标
and pointer to function 和指向函数的指针
应用推荐