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

正文內(nèi)容

圖書管理系統(tǒng)(c語言)-在線瀏覽

2025-05-25 23:05本頁面
  

【正文】 Delete books)。 printf(4:Borrow or return books)。 printf(5:Total numbers)。 printf(0:Exit)。 printf(***********************************************)。if(a==50) search_books()。if(a==53) total_numbers()。clrscr()。if(ss[8]==39。){ss[8]=39。 ss[7]=ss[7]+1。 for(i=7。i) if(ss[i]==58) {ss[i]=39。ss[i1]++。if(ss[8]==39。){ss[8]=39。 ss[7]=ss[7]1。 for(i=7。i) if(ss[i]==47) {ss[i]=39。ss[i1]。struct book oldbook,newbook。int n,i。exit(0)。exit(0)。fread(amp。fclose(fp2)。fscanf(fp1,%d,amp。rewind(fp1)。exit(0)。i=n。newbook,sizeof(struct book),1,fp1)。strcpy(,ssl)。newbook,sizeof(struct book),1,fp2)。fclose(fp2)。struct book newbook。if((fp=fopen(,wb))==NULL) {printf(wrong!)。} while(a==121){clrscr()。 printf(New book %d:\n,n)。 scanf(%s,)。 scanf(%s,)。 scanf(%f,amp。 printf(Type:)。 printf(Press:)。 =0。 fwrite(amp。 /**/ printf(continue ? (y/n))。 } clrscr()。 printf(Successfully saved!\nPress any key to back)。 save_books()。}函數(shù)delete_book實(shí)現(xiàn)對(duì)圖書的刪除操作void delete_book() /*刪除圖書函數(shù)*/{long int totalbook,i。char a=39。,ss[10]。struct book sbook。if((fp1=fopen(,rb))==NULL){printf(wrong!)。}if((fp2=fopen(,wb))==NULL){printf(wrong!)。 }fseek(fp1,100L,2)。sbook,sizeof(struct book),1,fp1)。 /*獲得圖書數(shù)目*/rewind(fp1)。printf(Please input the number of the book:)。clrscr()。sbook,sizeof(struct book),1,fp1)。sbook,sizeof(struct book),1,fp2)。i=totalbook。sbook,sizeof(struct book),1,fp1)。 printf(The information of the book:\n)。 printf(Author:%s\n,)。 printf(Price:%\n,)。 printf(Are you sure to delete the book?(y/n)) 。 if(a!=121) break。sbook,sizeof(struct book),1,fp2)。fwrite(amp。}}}fclose(fp1)。if(done==0) printf(Wrong number!)。amp。 clrscr()。}getch()。printf(Continue ? (y/n))。}remove()。struct book sbook。exit(0)。for(i=1。i+=1){fread(amp。 fwrite(amp。} fclose(fp1)。}函數(shù)search_books實(shí)現(xiàn)對(duì)圖書的查找void search_books() /*查找圖書函數(shù)*/{int n,total=0。char item[20]。y39。struct book sbook。exit(0)。fread(amp。totalbook=atol()。while(ss==121){clrscr()。 /*查找方式設(shè)置*/printf(1:name\n2:author\n3:number\n)。switch(n){case 49:clrscr()。scanf(%s,item)。printf(\n)。i=totalbook。sbook,sizeof(struct book),1,fp)。 printf(Name:%s\n,)。 printf(Number:%s\n,)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1