C++ 之 函数指针

来源:互联网 发布:淘宝牛仔裤质量好的店 编辑:程序博客网 时间:2024/05/22 20:27
void say(int x, int y){cout << x << y << endl;}int main(){void (*func)(int,int);//func = say; //都可以func = &say;(*func)(1,1);func(1,1);system("pause");return 0;}

0 0
原创粉丝点击