不知道哪个错误,请高手帮忙改正,拜托。。。。
#include<iostream>using namespace std;
void score()
define N5;
{
int i,max,min,SUM=0,ave;
max=min=stu[0].score;
for(i=0;i<sum;i++)
{
if(stu[i].score>max)
max=stu[i].score;
if(stu[i].score<min)
min=stu[i].score;
SUM+=stu[i].score;
}
ave=SUM/sum;
printf("\n Computer average:%d",ave);
printf("\n Computer max:%d",max);
printf("\n Computer min:%d",min);
printf("\n");
}