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

正文內(nèi)容

c語(yǔ)言程序設(shè)計(jì)報(bào)告圖書(shū)館信息管理系統(tǒng)-文庫(kù)吧

2024-11-26 15:00 本頁(yè)面


【正文】 8 struct tushu { char bianhao1[10]。 char bianhao2[10]。 char leixing[20]。 char shuming[50]。 char chubanshe[50]。 char writer[20]。 long zongshu。 long shengyu。 }shu。 struct books { char bianhao1[10]。 char bianhao2[10]。 long nian。 long borrowmonth。 long borrowday。 9 long returnedmonth。 long returnedday。 long limittime。 char student[10]。 }book。 void shan() //刪除圖書(shū)信息 { 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)) { 10 i++。 m=i。 } printf(要?jiǎng)h除幾本書(shū): )。 scanf(%d,amp。n)。 getchar()。 for(i=0。in。i++) { printf(輸入圖書(shū)編號(hào) 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) { 11 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++) 12 fwrite(amp。tu[i],sizeof(shu),1,fp)。 printf(刪除成功??! )。 } void xiu() //修改圖書(shū)信息 { 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。 13 } if((fp=fopen(,w))==NULL) { printf(can not open the .\n)。 exit(0)。 } printf(要修改幾 本書(shū) :)。 scanf(%d,amp。n)。 getchar()。 for(i=0。in。i++) { printf(輸入要修改的圖書(shū)編號(hào) 2: )。 gets(booknum)。 for(i=0。im。i++) { if(strcmp(booknum,tu[i].bianhao2)==0) break。 } 14 if(im) { printf(》》》輸入修改后的 \n\n)。 printf(》》》輸入編號(hào) 1:)。 gets(tu[i].bianhao1)。 printf(\n)。 printf(》》》編號(hào) 2:)。 gets(tu[i].bianhao2)。 printf(\n)。 printf(》》》類(lèi)型 :)。 gets(tu[i].leixing)。 printf(\n)。 printf(》》》書(shū)名 :)。 gets(tu[i].shuming)。 printf(\n)。 printf(》》》出版社 :)。 gets(tu[i].chubanshe)。 printf(\n)。 15 printf(》》》作者 :)。 gets(tu[i].writer)。 printf(\n)。 printf(》》》總數(shù) :)。 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++) f
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1