獲取這些錯誤在我的方程A和B,然後將其他錯誤是由是在calcit的結束時即時試圖把它傳遞給slopeitC++無效操作數和類型
[Error] invalid operands of types 'int [3]' and 'int [3]' to binary 'operator*' [Error] invalid operands of types 'double' and 'int [3]' to binary 'operator*' [Error] invalid conversion from 'int' to 'double*' [-fpermissive] [Error] cannot convert 'int*' to 'double*' for argument '2' to 'void slopeit (double*,double*, int, double&, double&, double&)'
double slops[3], yints[3], boards[3];
double yint15,yint20,yint25,slop15,slop20,slop25,rsq15,rsq20,rsq25;
double board;
void calcit (double tim15[], double tim20[], double tim25[], double tem15[],
double tem20[], double tem25[], int indx, int board,int temperature)
{
double B;
double A;
double time;
double slopsofslops;
double yofslopes;
double rsq;
double yint15,yint20,yint25,slop15,slop20,slop25,rsq15,rsq20,rsq25;
slopeit(tim15, tem15, indx, slop15, yint15, rsq15);
slopeit(tim20, tem20, indx, slop20, yint20, rsq20);
slopeit(tim25, tem25, indx, slop25, yint25, rsq25);
yints[0]=yint15;
yints[1]=yint20;
yints[2]=yint25;
boards[0]=15;
boards[1]=20;
boards[2]=25;
slops[0]=slop15;
slops[1]=slop20;
slops[2]=slop25;
indx = 3;
time = pow(e,(temperature -B)/A);
A = (slops * boards) + yofslopes;
B = (yofslopes * boards) + yints;
//Pass the values needed into writeit and finished
slopeit(board, slops, indx, slopsofslops, yofslopes, rsq);
}
void slopeit(double x[], double y[], int n, double& m, double& b, double& r)