问题遇到的现象和发生背景
|84|error: invalid types 'int*[double]' for array subscript|
用代码块功能插入代码,请勿粘贴截图
double polynomialVal(int *pt,double x)
{
double i,k,he = 0,l;
k = pt[0] + 2;
for (i = 1;i < k; ++i) {
l = (double)pt[i];
he = he + l * (pow(x,i - 1));
}
return he;
}
我想要达到的结果
问下这个错误怎么解决