2010C语言实验报告参考答案,DOC 下载本文

内容发布更新时间 : 2024/12/25 12:48:42星期一 下面是文章的全部内容请认真阅读。

海量资源,欢迎共阅 scanf(\q=p=h;

while(strcmp(p->no,s)&&p!=NULL) { q=p; p=p->next; } if(p==NULL) printf(\else { printf(\printf(\**\\n\printf(\printf(\printf(\core[0],p->score[1],p->sum,p->order);

printf(\); getch(); }

海量资源,欢迎共阅 return(h); }

voidsearch(STUDENT*h) {

STUDENT*p; chars[15]; clrscr(); printf(\scanf(\p=h; while(strcmp(p->name,s)&&p!=NULL) p=p->next; if(p==NULL) printf(\else { printf(\printf(\\\n\

printf(\printf(\

printf(\

海量资源,欢迎共阅

core[0],p->score[1],p->sum,p->order);

printf(\); } }

STUDENT*insert(STUDENT*h) { STUDENT*p,*q,*info; chars[11]; ints1,i; printf(\scanf(\printf(\info=(STUDENT*)malloc(sizeof(STUDENT)); if(!info) { printf(\returnNULL; }

inputs(\inputs(\printf(\

海量资源,欢迎共阅 s1=0;

for(i=0;i

printf(\if(i==1) printf(\scanf(\if(info->score[i]>100||info->score[i]<0) printf(\}while(info->score[i]>100||info->score[i]<0); s1=s1+info->score[i]; } info->sum=s1; info->order=0; info->next=NULL; p=h; q=h;

while(strcmp(p->no,s)&&p!=NULL) { q=p;

海量资源,欢迎共阅 p=p->next; }

if(p==NULL) if(p==h) h=info; else q->next=info; else if(p==h) { info->next=p; h=info; } else { info->next=p; q->next=info; }

printf(\return(h); } /*SAVE*/