这行的错误该如何修改
auto pb=p;这行的错误该如何修改?程序代码:
#include<iostream> const double *f1(double *ar,int n){ double a=9; double *p=&a; return p; } const double *f2(double *ar,int n){ double a=9; double *p=&a; return p; } const double *f3(double *ar,int n){ double a=9; double *p=&a; return p; } int main(void){ using namespace std; double n=6; double *av=&n; const double *(*p[3])(double *ar,int n)={f1,f2,f3}; const double *(*(*pp)[3])(double *ar,int n)=&p; auto pb=p; const double *(*pb[3])(double *ar,int n)={f1,f2,f3}; const double *ab=p[0](av,3); const double *ac=(*pb[1])(av,3); return 0; }