资源描述:
《学生成绩管理系统V.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、`#include#include#includeintmain(){inta,b,d,e,n,z;floatc=0,g;printf("Inputstudentnumber(n<30):");scanf("%d",&n);longv[n],f;floatvc[n];next:;intx1=0,x2=0,x3=0,x4=0,x5=0,x6=0;intz1=60,z2=69,z3=70,z4=79,z5=80,z6=89,z7=90,z8=99,z9=100;printf("ManagementforStudent
2、s'scores""1.Inputrecord""2.Caculatetotalandaveragescoreofcourse""3.Sortindescendingorderbyscore""4.Sortinascendingorderbyscore""5.Sortinascendingorderbynumber""6.Searchbynumber""7.Statisticanalysis""8.Listrecord""0.Exit""PleaseInputyourchoice:");scanf("%d",&a);switch(
3、a){case1:printf("Inputstudent'sIDandscore:");for(b=0;b4、;vc[d]=vc[e];vc[e]=g;g=v[d];v[d]=v[e];v[e]=g;}}}for(b=0;bvc[e]){g=vc[d];vc[d]=vc[e];vc[e]=g;g=v[d];v[d]=v[e];v[e]=g;}}}for(b=0;b5、.0f",v[b],vc[b]);}break;Word文档`case5:printf("Sortinascendingorderbynumber:");for(d=0;dv[e]){g=vc[d];vc[d]=vc[e];vc[e]=g;g=v[d];v[d]=v[e];v[e]=g;}}}for(b=0;b6、);scanf("%ld",&f);z=0;for(b=0;b7、t%.2f%%",x1,(float)x1/n*100);printf("%d-%dt%dt%.2f%%",z1,z2,x2,(float)x2/n*100);printf("%d-%dt%dt%.2f%%",z3,z4,x3,(float)x3/n*100);printf("%d-%dt%dt%.2f%%",z5,z6,x4,(float)x4/n*100);printf("%d-%dt%dt%.2f%%",z7,z8,x5,(float)x5/n*100);printf("%