2021-10-14 17:16来源:m.sf1369.com作者:宇宇
struct stu
{
char name[30];
int score;
int n;
}student[S];
int sum;
int input()
{
int i;
for(i=0;i
max=student[i].score;
maxid=i;}
}
printf(No.%d:%s,his score is %d\n,found+1,student[maxid].name,max);
max=0;
student[maxid].score=0;
found++;}
}
int main()
{
printf(How many students:);
scanf(%d,&n);
input();
theSix();
printf(The average:%d,sum/S);
getchar();
getchar();
}