【函数指针】typedef问题
#include<iostream>using namespace std;
int main()
{
const double *f1(double *x,int y);
typedef const double* (*p_fun)(const double *x,int y);
p_fun p1=f1;
}
const double *f1(double *x,int y)
{
return x;
}
这段代码为什么不能用f1对p1进行赋值?
