C语言编程题 求代码
#include
#include
intn;
structStudent{
intno;
charname[10];
intscore[5];
intsum;
intaverage;
}student[100000];
voidSort(Student*s){
for(inti=0;i
for(intj=i+1;j
if(s[j].sum>s[i].sum){
charns[100];
strcpy(ns,s[i].name);
strcpy(s[i].name,s[j].name);
strcpy(s[j].name,ns);
intsnum=s[i].sum,save=s[i].average;
s[i].sum=s[j].sum,s[i].average=s[j].average;
s[j].sum=snum,s[j].average=save;
voidprintInfo(){
for(inti=0;i
printf("%s,%d,%d\n",student[i].name,student[i].sum,student[i].average);
intmain()
printf("请输入学生的数量n:");
scanf("%d",&n);
for(inti=0;i
printf("请分别输入第%d名同学的id,名字,成绩1,成绩2,成绩3,成绩4",i+1);
scanf("%d%s%d%d%d%d",&student[i].no,student[i].name,&student[i].score[0],&student[i].score[1],&student[i].score[2],&student[i].score[3]);
student[i].sum=student[i].score[0]+student[i].score[1]+student[i].score[2]+student[i].score[3];
student[i].average=student[i].sum/4;
Sort(student);
printInfo();
return0;
编写一按钮单机事件过程,求3~10的成绩并输出的编程代码
怎样使用“必胜编程专家”编写EA
驱动程序装完后,重新启动计算机不能以正常模式进