基本的定义和使用:
定义bool (*fx)(int)
赋值fx=f
使用(*fx)()
类成员函数指针
定义bool (Foo::*fx)(int)
fx=&Foo::f
使用:Foo foo;
(foo::*fx)(int i)
基本的定义和使用:
定义bool (*fx)(int)
赋值fx=f
使用(*fx)()
类成员函数指针
定义bool (Foo::*fx)(int)
fx=&Foo::f
使用:Foo foo;
(foo::*fx)(int i)