首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

int (* (*f)(int, int))(int)表示什么含义?该如何解决

2012-02-16 
int (* (*f)(int, int))(int)表示什么含义?rt..[解决办法]int f1(int){return 0}int (* f2 (int, int))(i

int (* (*f)(int, int))(int)表示什么含义?
rt..

[解决办法]
int f1(int){return 0;}
int (* f2 (int, int))(int)//f2是函数名,返回函数指针int (* )(int)
{return f1;}
void main() 

int (* (*f)(int, int))(int)=f2;//f是个函数指针,可以指向f2那样的函数.
}

[解决办法]
a function pointer
it points to a function that takes two arguments and return another function pointer that is 
"int (*)(int)"

热点排行