;Р }Р break;Р case 3:for(i=0;i<n;i++)Р a[i]=i;Р for(i=0;i<n;i++)Р {Р for(j=i+1;j<n;j++)Р if(h[a[i]].mscore<h[j].mscore) Р {Р t=a[i];Р a[i]=a[j];Р a[j]=t;Р }Р }Р for(i=0;i<n;i++)Р {Р printf("\n学校编号:%d\n",h[a[i]].schoolnum);Р printf("******************学校总分:%d\n",h[a[i]].score);Р printf("******************男团总分:%d\n",h[a[i]].mscore);Р printf("******************女团总分:%d\n",h[a[i]].wscore);Р printf("\n");Р Р }Р break;Р case 4:for(i=0;i<n;i++)Р a[i]=i;Р for(i=0;i<n;i++)Р {Р for(j=i+1;j<n;j++)Р if(h[i].wscore<h[j].wscore) Р {Р t=a[i];Р a[i]=a[j];Р a[j]=t;Р }Р }Р for(i=0;i<n;i++)Р {Р printf("\n学校编号:%d\n",h[a[i]].schoolnum);Р printf("******************学校总分:%d\n",h[a[i]].score);Р printf("******************男团总分:%d\n",h[a[i]].mscore);Р printf("******************女团总分:%d\n",h[a[i]].wscore);Р printf("\n");