freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語言課程設(shè)計--圖書管理-預覽頁

2025-07-07 10:01 上一頁面

下一頁面
 

【正文】 /*按書名查詢 */ { r=lnext。 /*若未找到,返回一個空指針 */ } void stringinput(char *t,int lens,char *notice)/*輸入字符串,并進行長度驗證 */ { char n[50]。 /*進行長度是否超過規(guī)定值 */ }while(strlen(n)lens)。 /*顯示提示信息 */ scanf(%d,amp。 return t。 s=lnext。 /*將指針移至于鏈表最末尾,準備添加記錄 */ while(1) /*可輸入多條記錄,輸入 0 時退出添加操作 */ { while(1) { stringinput(num,10,input number(press 39。 if(strcmp(num,0)==0) /*輸入 0 退出操作 ,返回菜單界面 */ {return。 } s=snext。ch)。Y39。} } p=(Node *)malloc(sizeof(Node))。 /*將字符串拷貝到 p */ stringinput(p,15,Name:)。/*輸入出版社名稱到 p中 */ p=numberinput(number:)。 } return 。 r=m。/*將原有記錄輸出 */ while(rnext!=NULL) r=rnext。 /*輸入會員號 */ flag=0。 break。 scanf(%c,amp。||ch==39。 } else {break。 /*返回主界面 */ } strcpy(p,num)。 rnext=p。 char searchinput[20]。 getchar()。 printf( please choice[1,2]:)。 p=Locate(l,searchinput,num)。 printf(press any key to return)。 } else if(select==2) /*按書名查詢 */ { stringinput(searchinput,15,input the existing book name:)。 printf(END)。 getchar()。 Node *p,*r。 getchar()。 printf(\n =====1 Delete by number =====2 Delete by name\n)。 if(sel==1) { stringinput(findmess,10,input the existing student number:)。 rnext=pnext。 } else Nofind()。 if(p) { r=l。 printf(\n=====delete success!\n)。 } else Wrong()。 if(!lnext) { system(cls)。 } system(cls)。 p=Locate(l,findmess,num)。 printf(price:%d,p)。 printf(Publishing pany:%s,p)。 printf(\n=====modify success!\n)。 } void Save(Link l)/*將數(shù)據(jù)存盤 */ { FILE *fp。/*以只寫方式打開二進制文件 */ if(fp==NULL) /*打開文件失敗 */ { printf(\n=====open file error!\n)。 while(p) { if(fwrite(p,sizeof(Node),1,fp)==1)/*寫記錄到磁盤文件中 */ { p=pnext。 printf(\n\n\n\tsave file plete,total saved39。 printf(the current link is empty,no student record is saved!\n)。 Mnode *p。 getchar()。 count++。s record number is:%d\n,count)。 } fclose(fp)。 fp=fopen(f:\\borrow,wb)。 } p=bnext。 } } if(count0) { getchar()。 } else {system(cls)。 Node *q。 t=bnext。 printf(HEADER7)。 printf(HEADER8)。 while(snext!=NULL) s=snext。 else p=pnext。 else q=qnext。 } else if(q==NULL) { printf(the book is not exist!)。 /*申請內(nèi)存空間 */ if(!k) { printf(\n allocate memory failure )。 strcpy(k,p)。 /*將新結(jié)點插入鏈表中 */ s=k。 } void ret(Link l,Blink b)/*還書 */ { Bnode *p,*q。 p=qnext。 stringinput(booknum,10,please input the number of book:)。 do { if(strcmp(t,booknum)==0) break。/*如果還書成功則可借的數(shù)目加 1*/ free(p)。 return。 /*定義鏈表 */ Mlink m。 char ch。 Bnode *s,*k。 /*返回菜單界面 */ } bnext=NULL。 exit(0)。 /*退出 */ } if(fread(s,sizeof(Bnode),1,fp)==1) /*從文件中讀取借書記錄 */ { snext=NULL。 /*關(guān)閉文件 */ m=(Mnode*)malloc(sizeof(Mnode))。 t=m。 } while(!feof(fp)) { q=(Mnode*)malloc(sizeof(Mnode))。 tnext=q。 if(!l) { printf(\n allocate memory failure )。 fp=fopen(f:\\book,ab+)。 if(!p) { printf( memory malloc failure!\n)。 r=p。 menu()。 printf(\n Please Enter your choice(0~9):)。 case 1:Add(l)。 case 3:search(l)。 case 5:Addmember(m)。 case 7:ret(l,b)。 case 9:Savemember(m)。break。
點擊復制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1