函数指针为什么传递不过去~格式有错误吗?高手进来解答下!谢谢..
#include<iostream>using namespace std;
double add(double, double);
double aadd(double, double, double *ad(double, double));
int main()
{
double h;
h=aadd(3,5,add);
cout << "h = "<< h << endl;
system("pause");
return 0;
}
double aadd(double a, double b, double *ad(double, double))
{
double m = *ad(a, b);
return m;
}
double add(double x, double y)
{
return x + y;
}