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

正文內(nèi)容

c語言圖書銷售系統(tǒng)(源代碼)(更新版)

2025-09-02 09:18上一頁面

下一頁面
  

【正文】 ( \n\n)。 if(p1==NULL||T==0) /*文件不存在或書庫中沒書*/ { printf(\n\n\n\n\t\t\t\t當(dāng)前書庫沒書!!!)。/*書未銷售,本數(shù)加上*/ printf(\n\n\t\t\t\t 撤銷完畢!!!!)。n39。/*結(jié)束購書*/ free(p4)。 system(cls)。system(cls)。 p5=(struct book*)malloc(LEN)。 system(cls)。 printf(\n\n\t\t\t\t請重新輸入書號:)。 if(ch==39。 p1=head。 rewind(stdin)。 getchar()。 /*書未銷售,本數(shù)加上*/ printf(\n\n\t\t\t\t 撤銷完畢!!!!)。n39。/*結(jié)束購書*/ free(p4)。 system(cls)。system(cls)。 p5=(struct book*)malloc(LEN)。 system(cls)。 printf(\n\n\t\t\t\t請重新輸入書號:)。 if(ch==39。 p1=head。 return。 scanf(%s,vipnum)。 p = gmtime(amp。 break。choice1)。 printf( )。 rewind(stdin)。/*清空緩沖區(qū)*/ getchar()。 rewind(stdin)。v2discount)。 return。 } printf(銷售信息列出完畢,按回車鍵返回子菜單:)。 exit(0)。 s2snext=s1。}void loadsales() /*開始導(dǎo)入銷售信息*/{ FILE *vfp。 break 。 printf(\t請選擇操作:)。 printf( )。 printf(\n\n\t\t\t%d項圖書信息已經(jīng)由系統(tǒng)自動載入.\n\n\t\t\t,T)。 fscanf(fp,%s%s%s%f%d,amp。p7acount)。 } head=p3=p1=(struct book*)malloc(LEN)。}void wele() /*歡迎界面顯示*/{ system(cls)。 break 。 case 2 : system(cls)。 printf( 0 : 返回主界面 \n)。 printf( )。 rewind(stdin)。 /*系統(tǒng)清屏*/ printf(\n *************************主菜單*************************\n\n)。break。break。 /*自動導(dǎo)入書庫信息*/ while(1) { switch(menu()) { case 1:system(cls)。 /*刪書時,是否調(diào)用過顯示已售完書功能標(biāo)志*/int T=0。 /*退出*/int menu()。 /*通過書號刪除*/void delet_by_bname()。 /*通過書號查詢*/void search_by_bname()。 /*歡迎界面顯示*/void inputbook()。 char vname[41]。 /*作者*/ float price。include include include include include include define LEN sizeof(struct book)define VLEN sizeof(struct vip)define SLEN sizeof(struct sales)struct vip *vhead=NULL。 /*書名*/ char author [20]。struct vip{ char vnum[12]。 /*自動讀入書庫信息*/void wele()。 /*查詢書數(shù)量*/void search_by_bnum()。 /*刪除書目*/void delet_by_bnum()。 /*非會員買書*/void exit0()。 /*買書時,是否調(diào)用過查詢功能標(biāo)志*/int shan_flag=0。 loadvip()。listvip()。exit0()。 system(cls)。 printf(請輸入您的選擇(0~8):)。 /*顯示菜單*/ printf( *************圖書管理************* )。 printf( 5 : 圖書信息保存 \n)。 break。delet()。 printf(\n)。 return。p7price,amp。 p1next=NULL。 /*釋放多申請的一個單元*/ p3next=NULL。 /*顯示菜單*/ printf( *************銷售統(tǒng)計************* )。 printf( )。monthsales()。 printf(\n)。 s1=(struct sales*)malloc(VLEN)。 /*清空緩沖區(qū)*/ if(fclose(vfp)) { printf(文件關(guān)閉失敗!\n)。 printf(\n)。 getchar()。v2persum,amp。 printf(\n\n\t\t\t%d項會員信息已經(jīng)由系統(tǒng)自動載入.\n\n\n\n\t\t\t按任意鍵顯示主菜單:,V)。 rewind(stdin)。 } printf(會員信息列出完畢,按回車鍵返回子菜單:)。 printf( )。 scanf(%d, amp。 case 0 : system(cls)。timep)。 printf(\n\n\n\n\n\n\n\n\n\n\n\t\t\t請輸入會員號碼:)。 /*清空緩沖區(qū)*/ getch()。/*清空緩沖區(qū)*/ gets(bnum)。/*清空緩沖區(qū)*/ ch=getchar()。/*調(diào)用查詢,通過其他途徑確定書號*/ } while(1) { printf(\n\n\t\t\t提示:若沒有您要找的書,可按0結(jié)束!!!)。 } if(p1!=NULL) break。 sum=sum+p4price。/*減去售過的書(本數(shù))*/ p4=head2。/*清空緩沖區(qū)*/ ch=getchar()。)。 if(ch==39。p1=p1next) if(strcmp(p1bnum,p4bnum)==0) p1acount=p1acount+1。/*清空緩沖區(qū)*/ printf(\n\n\t\t\t 按回車鍵返回主菜單)。 printf(\n\n\t\t\t\t 按任意鍵返回:)。/*清空緩沖區(qū)*/ gets(bnum)。/*清空緩沖區(qū)*/ ch=getchar()。/*調(diào)用查詢,通過其他途徑確定書號*/ } while(1) { printf(\n\n\t\t\t提示:若沒有您要找的書,可按0結(jié)束!!!)。 } if(p1!=NULL) break。 sum=sum+p4price。/*減去售過的書(本數(shù))*/ p4=head2。/*清空緩沖區(qū)*/ ch=getchar()。)。 if(ch==39。p1=p1next) if(strcmp(p1bnum,p4bnum)==0) p1acount=p1acount+1。 p1=head。 printf( \n\n)。 while(choice0||choice3) { system(cls)。search_by_bnum()。 case 0:system(cls)。 printf( \n\n)。 p1=head。 }}/*通過書名查詢*/void search_by_bname(){ char bname [40]。 else { p2=p1。 rewind(stdin)。 printf(\n\n *****************當(dāng)前查找狀態(tài)顯示*****************\n\n)。 printf(%15s%25s%15s % %5d\n,p9bnum,p9bname,p9author,p9price,p9acount)。 printf( \n\n)。 rewind(stdin)。 } else n++。 rewind(stdin)。 printf(\n\n 請選擇一種刪除方式(0~3):)。 rewind(stdin)。break。 }while(ch==39。/*清空緩沖區(qū)*/ gets(bnum)。 rewind(stdin)。/*調(diào)用函數(shù),顯示全部已經(jīng)售完的書*/ shan_flag=1。 } system(cls)。 struct book *p4,*p5,*p6。 while(p1!=NULL) { /*將滿足刪除要求的圖書放到一起存儲起來*/ if(strcmp(bname,p1bname)==0amp。 p4next=NULL。/*清空緩沖區(qū)*/ ch1=getchar()。/*調(diào)用標(biāo)志,此處調(diào)用后,將不會重復(fù)顯示刪除方式菜單,直至刪除一項信息*/ } } else { /*開始刪除,支持多本刪除*/ for(p4=head2。} } if(headnext==NULL) { free(head)。 printf(\n\n\t\t\t按回車鍵繼續(xù):)。 printf(\n\t\t\t請輸入要刪除的圖書作者:)。p1acount==0) { n++。 } p6next=NULL。y39。p5=p4,p4=p4next) { p1=head。 } else if(p1==head) { head=p1next。/*清空緩沖區(qū)*/ save_flag=1。 } else { printf(\n\n\t\t *************當(dāng)前書庫信息*************\n)。/*清空緩沖區(qū)*/ getchar()。 } if(save_flag==0) { printf(\n\n\n\n\n\n\n\n\n\n\t\t\t\t圖書信息已保存過\n\n\t\t\t\t按回車鍵返回:)。 system(cls)。 /*清空緩沖區(qū)*/ getchar()。/*清空緩沖區(qū)*/ ch=getchar()。 save()。 struct book *p7,*p8。 system(cls)。 while(n1||n50) { system(cls)。 printf(\n\n 書號:10個數(shù)字或字符組成 書名:小于20個漢字或40個字符 作者:小于10個漢字或20個字符\n)。
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1