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

正文內(nèi)容

c語言圖書管理系統(tǒng)-文庫吧資料

2024-09-03 01:34本頁面
  

【正文】 ===========================\n)。 while(p!=NULL){ if(strcmp(pbname,a)==0){ printf( ** %d %s %s %s %s %d %.2f **\n,pnum, pbname,pwname,ppress,psort,ptime,pprice)。 printf( =========================================================================\n)。 } if(flag==0){ printf(沒有找到該圖書名的圖書!\n)。 break。 p=head。 printf(請選擇您要查詢的圖書名:)。 int flag=0。 printf( =========================================================================\n)。 printf( ** 編號 圖書名 作者名 出版社 類別 出版時間 價格 **\n)。 } else{ printf( 你所查詢的圖書信息如下\n)。 p=pnext。 p=head。a)。 printf(請選擇您要查詢的圖書編號:)。 }}按編號查詢圖書信息void num_chaxun(struct book *head){ int a。 default: printf(您的輸入有誤!\n)。 case 5: time_chaxun(head)。 case 4: wname_chaxun(head)。 case 3: sort_chaxun(head)。 case 2: bname_chaxun(head)。 case 1: num_chaxun(head)。 getchar()。 scanf(%d,amp。 printf( ==========================================================\n)。 printf( ** 3按圖書類別查詢 4按作者名查詢 **\n)。 printf( ==========================================================\n)。 getchar()。 break。 printf(刪除成功!\n)。y39。: break。 switch(b){ case 39。 scanf(%c,amp。 printf(是否確定從文件中徹底刪除該圖書?(y/n)\n)。 p1=p1next。amp。 printf(文件已清空!\n)。 exit(0)。y39。: break。 switch(b){ case 39。b)。 getchar()。amp。 p1=head。 scanf(%d,amp。 FILE *fp。139。}刪除圖書信息void deletebook(struct book *head){ int a。ptr=ptrnext) printf( %d %s %s %s %s %d %.2f\n,ptrnum, ptrbname,ptrwname,ptrpress,ptrsort,ptrtime,ptrprice)。 for(ptr=head。 printf( ==========================================================\n)。 return。}將整個鏈表的信息輸出void print_book(struct book *head){ struct book *ptr。 return head。 } tailnext=NULL。 else tailnext=p1。p1price)。p1num,p1bname,p1wname,p1press,p1sort,amp。){ while(!feof(fp)){ p1=(struct book *)malloc(sizeof(struct book))。 if(ch==39。 exit(0)。 head=tail=NULL。 char ch。 } fclose(fp)。p1。 } fputc(ch,fp)。 if((fp=fopen(,w))==NULL){ printf(File open error!\n)。139。}將新鏈表寫入文件中void fprint(struct book *head){ FILE *fp。 } if(p==NULL) return 0。 while(p!=NULL){ if(pnum==m) break。}驗證添加的圖書編號是否已存在int yanzheng(struct book *head,int m){ struct book *p。 pnext=NULL。 pnext=p2。 } if(ptrnum=p2num){ if(head==p2) head=ptr。(p2next!=NULL)){ p1=p2。 while((ptrnump2num)amp。 p2=head。 ptime=time。 strcpy(ppress,press)。 strcpy(pbname,bname)。 p=(struct book *)malloc(size)。price)。 printf(請輸入價格:)。time)。 printf(請輸入出版時間:)。 scanf(%s,sort)。 getchar()。 printf(請輸入出版社:)。 scanf(%s,wname)。 getchar()。 printf(請輸入圖書名:)。 else printf(您輸入的編號已存在,請重新輸入!\n)。 n=yanzheng(head,num)。 scanf(%d,amp。 float price。 int size=sizeof(struct book)。}插入結(jié)點(diǎn),并且插入后仍按一定順序struct book *addbook(struct book *head){ struct book *ptr,*p1,*p2,*p。 }while(1)。 if(n==0) break。num)。 do{ printf(請輸入圖書編號:)。 else tailnext=p。 pnext=NULL。 ptime=time。 strcpy(ppress,press)。 strcpy(pbname,bname)。 while(1){ p=(struct book *)malloc(size)。price)。 printf(
點(diǎn)擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1