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

正文內容

c語言程序設計報告圖書館信息管理系統(tǒng)-文庫吧

2025-07-23 01:50 本頁面


【正文】 { char bianhao1[10]。 char bianhao2[10]。 long nian。 long borrowmonth。 long borrowday。 long returnedmonth。 long returnedday。 long limittime。 char student[10]。 }book。void shan() //刪除圖書信息{ FILE *fp。 int i=0,j,n,m,l。 char booknum[20]。 struct tushu tu[1000]。 if((fp=fopen(,r))==NULL) { printf(can not open the .\n)。 exit(0)。 } while(fread(amp。tu[i],sizeof(shu),1,fp)) { i++。 m=i。 } printf(要刪除幾本書:)。 scanf(%d,amp。n)。 getchar()。 for(i=0。in。i++) { printf(輸入圖書編號2:)。 gets(booknum)。 for(j=0。jm。j++) if(strcmp(booknum,tu[j].bianhao2)==0) break。 if(jm) { for(l=0。lm。l++) if(strcmp(tu[j].bianhao1,tu[l].bianhao1)==0) { tu[l].zongshu。 tu[l].shengyu。 } for(j。jm。j++) tu[j]=tu[j+1]。 } else { printf(輸入有誤 重新輸入\n)。 i。 } } if((fp=fopen(,w))==NULL) { printf(can not open the .\n)。 exit(0)。 } for(i=0。imn。i++) fwrite(amp。tu[i],sizeof(shu),1,fp)。 printf(刪除成功?。?。}void xiu() //修改圖書信息{ FILE *fp。 int i=0,m,n。 char booknum[20],numchar[20]。 struct tushu tu[1000]。 if((fp=fopen(,r))==NULL) { printf(can not open the .\n)。 exit(0)。 } while(fread(amp。tu[i],sizeof(shu),1,fp)) { i++。 m=i。 } if((fp=fopen(,w))==NULL) { printf(can not open the .\n)。 exit(0)。 } printf(要修改幾本書:)。 scanf(%d,amp。n)。 getchar()。 for(i=0。in。i++) { printf(輸入要修改的圖書編號2:)。 gets(booknum)。 for(i=0。im。i++) { if(strcmp(booknum,tu[i].bianhao2)==0) break。 } if(im) { printf(》》》輸入修改后的\n\n)。 printf(》》》輸入編號1:)。 gets(tu[i].bianhao1)。 printf(\n)。 printf(》》》編號2:)。 gets(tu[i].bianhao2)。 printf(\n)。 printf(》》》類型:)。 gets(tu[i].leixing)。 printf(\n)。 printf(》》》書名:)。 gets(tu[i].shuming)。 printf(\n)。 printf(》》》出版社:)。 gets(tu[i].chubanshe)。 printf(\n)。 printf(》》》作者:)。 gets(tu[i].writer)。 printf(\n)。 printf(》》》總數:)。 gets(numchar)。 printf(\n)。 tu[i].zongshu=atol(numchar)。 printf(》》》剩余:)。 gets(numchar)。 printf(\n)。 tu[i].shengyu=atol(numchar)。 } else printf(輸入有誤\n)。 for(i=0。im。i++) fwrite(amp。tu[i],sizeof(shu),1,fp)。 } fclose(fp)。}void putin() //錄入新圖書{ char numchar[20]。 FILE *fp。 int i=0,m,n
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1