正在加载图片...
cin>>st(k]. num>>st(k] name>>st(k sex>>stk]- age>>st(k. cscore cout<<endl: {for(intj=计+lij= if(st[i cscore<stI].cscore) temp=stI; stll=[]; stHFtemp: j cout<<No. name sex age cscore <<end cout<<h <<endl; for(int上0;kN;H+) {cou<<tnum≤<""<<st name c <<stll. sex<< <<st[- age <<st[ cscore<<endl;{cin>>st[k].num>>st[k].name>>st[k].sex>>st[k].age>>st[k].cscore;} cout<<endl; for (int i=0;i<N-1;i++) {for (int j=i+1;j<=N-1;j++) if(st[i].cscore<st[j].cscore) {temp=st[j]; st[j]=st[i]; st[i]=temp; } } cout<<"No. name sex age cscore"<<endl; cout<<"--------------------------------------"<<endl; for (int l=0;l<N;l++) {cout<<st[l].num<<" "<<st[l].name <<" "<<st[l].sex<<" "<<st[l].age <<" "<<st[l].cscore<<endl; } }
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有