新手求解。。把函数付给变量时总提示出错
double sums(double a[5])//计算总成绩{
double sum=0;
int i;
for(i=0;i<5;i++)
sum+=a[i];
return sum;
};
double aves(double a[5])//计算平均成绩
{
double ave;
int i;
ave=sums(a[5])/5;
return ave;
}
编译时总提示出错
rror C2664: 'sums' : cannot convert parameter 1 from 'double' to 'double []'