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

正文內(nèi)容

c語(yǔ)言程序設(shè)計(jì)報(bào)告圖書館信息管理系統(tǒng)(編輯修改稿)

2024-09-03 01:50 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 。 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)。 } for(i=0。im。i++) { fwrite(amp。tu[i],sizeof(shu),1,fp)。 } printf(要錄入幾本書:)。 scanf(%d,amp。n)。 getchar()。 for(i=0。in。i++) { printf(\n)。 printf(》》》輸入編號(hào)1:)。 gets()。 printf(\n)。 printf(》》》編號(hào)2:)。 gets()。 printf(\n)。 printf(》》》類型:)。 gets()。 printf(\n)。 printf(》》》書名:)。 gets()。 printf(\n)。 printf(》》》出版社:)。 gets()。 printf(\n)。 printf(》》》作者:)。 gets()。 printf(\n)。 printf(》》》總數(shù):)。 gets(numchar)。 printf(\n)。 =atol(numchar)。 printf(》》》剩余:)。 gets(numchar)。 printf(\n)。 =atol(numchar)。 fwrite(amp。shu,sizeof(shu),1,fp)。 } fclose(fp)。}void print() //打印圖書信息表{ FILE *fp。 if((fp=fopen(,r))==NULL) { printf(can not open the .\n)。 exit(0)。 } puts(_______________________________________________________________________)。 puts()。 puts(| 編號(hào)1 | 編號(hào)2 | 類型 | 書名 | 作者 | 出版社 | 總數(shù) | 剩余 |)。 fseek(fp,0L,SEEK_SET)。 while(fread(amp。shu,sizeof(shu),1,fp)==1) printf( %9s%10s%10s%10s%10s%10s%10ld%10ld\n,,)。}void returned() //還書{ FILE *fp。 int i=0,m,flag=0,j。 char booknum[20]。 struct books book1[1000]。 if((fp=fopen(,r))==NULL) { printf(can not open the .\n)。 exit(0)。 } while(fread(amp。book1[i],sizeof(book),1,fp)) { i++。 m=i。 } if((fp=fopen(,w))==NULL) { printf(can not open the .\n)。 exit(0)。 } printf(輸入要還的圖書編號(hào)2:)。 gets(booknum)。 for(j=0。jm。j++) { if(strcmp(booknum,book1[j].bianhao2)==0) { flag=1。 break。 } } if(flag) { flag=0。 printf(輸入還書月份:)。 scanf(%ld,amp。book1[i].returnedmonth)。 printf(輸入還書日期:)。 scanf(%ld,amp。book1[i].returnedday)。 getchar()。 for(j=0。jm。j++) fwrite(amp。book1[i],sizeof(book),1,fp)。 } else printf(輸入有誤\n)。 fclose(fp)。}void books() //創(chuàng)建圖書文件{ FILE *fp。 char numchar[50],ch=39。y39。 if((fp=fopen(,wt))==NULL) { printf(can not open the .\n)。 exit(0)。 } while(ch==39。y39。||ch==39。Y39。) { printf(\n)。 printf(》》》輸入編號(hào)1:)。 gets()。 printf(\n)。 printf(》》》編號(hào)2:)。 gets()。 printf(\n)。 printf(》》》類型:)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1