tudentID);
scanf(\ for(j=0;j scanf(\ } } void Totalave (STU stu[],int n,int m) 算每门课程的总分和平均分 { int i,j,sum[M]; double ave[M]; for(j=0;j sum[j]=0; for(i=0;i sum[j]=sum[j]+stu[i].score[j]; } ave[j]=(double)sum[j]/n; } for(i=0;i printf(\科目%d的总分=%d,课程的平均分=%f\\n\ } void evestuTotalave (STU stu[],int n,int m) 算每个学生的总分和平均分 { int i,j,sum[N]; double ave[N]; for(i=0;i sum[i]=0; for(j=0;j sum[i]=sum[i]+stu[i].score[j]; } ave[i]=(double)sum[i]/m; } for(i=0;i printf(\学号为%ld,姓名为%s 的总分=%d,其平均分 =%f\\n\ } void Scoredes (STU stu[],int n,int m) 每个学生的总分由高到低排出名次表 { int i,j,k,h,sum[N]; STU t; for(i=0;i sum[i]=0; for(j=0;j sum[i]=sum[i]+stu[i].score[j]; } } for(i=0;i for(j=i+1;j if (sum[j]>sum[k]) k=j; } if(i!=k) { t=stu[i],h=sum[i]; stu[i]=stu[k],sum[i]=sum[k]; stu[k]=t,sum[k]=h; } } for(i=0;i printf(\);每个学生的总分由di到gao排出名次表 { int i,j,k,h,sum[N]; STU t; for(i=0;i sum[i]=0; for(j=0;j sum[i]=sum[i]+stu[i].score[j]; } } for(i=0;i for(j=i+1;j if (sum[j] t=stu[i],h=sum[i]; stu[i]=stu[k],sum[i]=sum[k]; stu[k]=t,sum[k]=h; } } for(i=0;i printf(\);学号由小到大排出名次表 { int i,j,k; STU t; for(i=0;i for(j=i+1;j if (stu[j].studentID t=stu[k],stu[k]=stu[i],stu[i]=t; } for(i=0;i printf(\ } } void Dicas (STU stu[],int n,int m) { int i,j; STU t; for(i=0;i for(j=i+1;j