int plus(int a,int b){
return a+b;
}
int (*pf)(int,int);
int main()
{
pf=plus;
//显示调用
cout<<(*pf)(1,2)<<endl;
//隐示调用
cout<<pf(1,2)<<endl;
system("pause");
return 0;
}
int plus(int a,int b){
return a+b;
}
int (*pf)(int,int);
int main()
{
pf=plus;
//显示调用
cout<<(*pf)(1,2)<<endl;
//隐示调用
cout<<pf(1,2)<<endl;
system("pause");
return 0;
}