no,p->number,p->name,p->grades); p=p->next;?}}intmain(intargc,char**argv){?score*head=0;?head=load(head);?printf("Pleaseinputtheoperationyouwantto" /> no,p->number,p->name,p->grades); p=p->next;?}}intmain(intargc,char**argv){?score*head=0;?head=load(head);?printf("Pleaseinputtheoperationyouwantto" />

全文预览

第4章-与文件管理有关的系统功能调用实践作业

上传者:你的雨天 |  格式:doc  |  页数:7 |  大小:44KB

文档介绍
tf("学生信息\n");?while(p!=NULL)?{ printf("%s%s%s%s\n",p->no,p->number,p->name,p->grades); p=p->next;?}}intmain(intargc,char**argv){?score*head=0;?head=load(head);?printf("Pleaseinputtheoperationyouwanttodo:\n" "\t\tI.Insertanewrecordinaformofrecord-num()stu-numstu-namestu-score\n" "\t\tA.Appendanewrecordinaformofrecord-num()stu-numstu-namestu-score\n" "\t\tS.Seadarecordbythevalueofrecord-num\n" "\t\tD.Deletearecordbythevalueofrecord-num\n" "\t\tQ.QuittheDBsystem\n");?charc;?intflag=1;?while(flag){ //return; printf("Pleaseentertheoperationtypeyouwanttodo\n"); scanf("%c",&c); if(c>=96)c-=32; switch(c) { case'I': insert(head); break; case'A': append(head); break; case'S': search(head); break; case'D': del(head); break; case'P': show(head); break; case'Q': flag=0; break; }?}?save(head);?return0;}

收藏

分享

举报
下载此文档