#include #include int cnt=0; struct student{ int clas,modified; char id[20],name[20]; double score1,score2,score3,total; }s[10]; void input(){ int i,j; for(i=0;i<3;i++){ scanf("%s%d%s%lf%lf%lf",s[i].id,&s[i].clas,s[i].name,&s[i].score1,&s[i].score2,&s[i].score3); s[i].modified=0; cnt++; s[i].total=s[i].score1+s[i].score2+s[i].score3; } } void modify(){ char str[20]; scanf("%s",str); int i=find(str); if(i!=-1){ scanf("%d%s%lf%lf%lf",&s[i].clas,s[i].name,&s[i].score1,&s[i].score2,&s[i].score3); s[i].total=s[i].score1+s[i].score2+s[i].score3; s[i].modified=1; } } int find(char str[]){ int i; for(i=0;is[j+1].clas||(s[j].clas==s[j+1].clas&&s[j].total