600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > c语言基础程序设计报告 c语言程序设计基础课程设计报告.doc

c语言基础程序设计报告 c语言程序设计基础课程设计报告.doc

时间:2018-09-04 06:23:01

相关推荐

c语言基础程序设计报告 c语言程序设计基础课程设计报告.doc

c语言程序设计基础课程设计报告.doc

还剩

16页未读,

继续阅读

下载文档到电脑,马上远离加班熬夜!

亲,很抱歉,此页已超出免费预览范围啦!

如果喜欢就下载吧,价低环保!

内容要点:

C 语言程序设计基础课程设计报告— 16 —p2->next=NULL;fclose(fp);printf("You have success to read data from the file!\n");return (head);}C 语言程序设计基础课程设计报告— 15 —p=head; while(p!=NULL) {fwrite(p,LEN,1,fp);p=p->next;}fclose(fp);printf("Save completed!\n");getch();}STUDENT *load(){STUDENT *p1,*p2,*head=NULL;FILE *fp;char infile[10];printf("C 语言程序设计基础课程设计报告— 14 —do{printf("score%d:",i+1);scanf("%d",&new->score[i]);if(new->score[i]>100||new->score[i]score[i]>100||new->score[i]score[i];}new->sum=sum1;new->average=(float)sum1/3;new->order=0C 语言程序设计基础课程设计报告— 13 —temp=temp->next; p1=head;p2=head;while(t->averageaverage&&p1!=NULL){p2=p1;p1=p1->next;}if(p1==p2){t->next=p1;head=t;}else{t->next=p1;p2->next=t;}}p1=head;while(p1!=NULL){i++;p1->C 语言程序设计基础课程设计报告— 12 —while(strcmp(p1->num,s) && p1 != NULL) {p2=p1;p1=p1->next;}if(strcmp(p1->num,s)==0) {printf("**************************************FOUND************************************\n");pC 语言程序设计基础课程设计报告— 11 —printf("| %3d | %4s | %-4s | %3d | %3d | %3d | %3d | %4.2f | %-5d|\n",i, p->num,p->name,p->score[0],p->score[1],p->score[2],p->sum,p->average,p->order);p=p->nexC 语言程序设计基础课程设计报告— 10 —if(!p){printf("\nOut of memory."); return (head);}printf("Enter the num(0:list end):");scanf("%s",p->num);if(p->num[0]=='0') break;printf("Enter the name:");scanf("%s",p->name);pC 语言程序设计基础课程设计报告— 9 —case 8: clrscr();head=load(); break;case 9: exit(0);}}}STUDENT *init(){return NULL; }menu_select(){int n;clrscr();printf("*********************************************************C 语言程序设计基础课程设计报告— 8 —3.程序代码#include #include#include #include#include #include#in

发表评论

暂无评论,赶快抢占沙发吧。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。