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

正文內(nèi)容

c語言圖書銷售系統(tǒng)(源代碼)-文庫吧資料

2025-07-31 09:18本頁面
  

【正文】 ntf(\n ******************查詢方式******************\n\n)。 system(cls)。 rewind(stdin)。 if(p1==NULL||T==0) /*文件不存在或書庫中沒書*/ { printf(\n\n\n\n\t\t\t\t當(dāng)前書庫沒書!!!)。}void search() /*查詢書庫信息*/{ int choice。/*清空緩沖區(qū)*/ printf(\n\n\t\t\t 按回車鍵返回主菜單)。 save_flag=1。/*書未銷售,本數(shù)加上*/ printf(\n\n\t\t\t\t 撤銷完畢!!!!)。p1!=NULL。p4!=NULL。N39。n39。/*清空緩沖區(qū)*/ ch=getchar()。 printf(\n\n\t\t\t 按任意鍵確認(rèn),按N撤銷購書:)。 if(head2next==NULL) printf(\n\n\n\n\n\n\n\n\n\n\t\t\t\t您當(dāng)前沒有購書!!!\n\n)。/*結(jié)束購書*/ free(p4)。N39。amp。n39。 system(cls)。 rewind(stdin)。 p4=p4next。 printf(\n\n書號 書名 作者 售價 數(shù)量 總費\n\n)。system(cls)。/*記錄買的本數(shù)i,*/ p1acount=p1acount1。 p4next=NULL。 p6=p4。 p5=(struct book*)malloc(LEN)。p1acount!=0) { *p4=*p1。 } if(p1!=NULLamp。 while(p1!=NULL) { if(strcmp(p1bnum,bnum)==0)/*有相同書號,循環(huán)提前結(jié)束*/ break。 system(cls)。 else p1=p1next。/*沒有需要的書,結(jié)束輸入書號*/ p1=head。/*清空緩沖區(qū)*/ gets(bnum)。 printf(\n\n\t\t\t\t請重新輸入書號:)。/*防止在此函數(shù)中調(diào)用時,search()函數(shù)執(zhí)行了清屏*/ search()。) { system(cls)。||ch==39。 if(ch==39。 rewind(stdin)。 printf(\n\n\n\n\n\n\n\n\n\n\t 沒有找到該書信息,可能書號輸入有誤,是否再次輸入書號?\n\n)。 else p1=p1next。 p1=head。/*書號唯一*/ rewind(stdin)。 p4next=NULL。 return。 rewind(stdin)。 if(p1==NULL||T==0) /*文件不存在或書庫中沒書*/ { printf(\n\n\n\n\n\n\n\n\n\n\t\t\t\t當(dāng)前書庫沒書!!!)。 float sum=0。 char ch。 getchar()。 } rewind(stdin)。 save_flag=1。 printf(\n\n\t\t\t你的會員等級為%d級,可以享受%.1f折.\n\n,v1level,(v1discount)*10)。 /*書未銷售,本數(shù)加上*/ printf(\n\n\t\t\t\t 撤銷完畢!!!!)。p1!=NULL。p4!=NULL。N39。n39。/*清空緩沖區(qū)*/ ch=getchar()。 printf(\n\n\t\t\t 按任意鍵確認(rèn),按N撤銷購書:)。 if(head2next==NULL) printf(\n\n\n\n\n\n\n\n\n\n\t\t\t\t您當(dāng)前沒有購書!!!\n\n)。/*結(jié)束購書*/ free(p4)。N39。amp。n39。 system(cls)。 rewind(stdin)。 p4=p4next。 printf(\n\n書號 書名 作者 售價 數(shù)量 總費\n\n)。system(cls)。/*記錄買的本數(shù)i,*/ p1acount=p1acount1。 p4next=NULL。 p6=p4。 p5=(struct book*)malloc(LEN)。p1acount!=0) { *p4=*p1。 } if(p1!=NULLamp。 while(p1!=NULL) { if(strcmp(p1bnum,bnum)==0)/*有相同書號,循環(huán)提前結(jié)束*/ break。 system(cls)。 else p1=p1next。/*沒有需要的書,結(jié)束輸入書號*/ p1=head。/*清空緩沖區(qū)*/ gets(bnum)。 printf(\n\n\t\t\t\t請重新輸入書號:)。/*防止在此函數(shù)中調(diào)用時,search()函數(shù)執(zhí)行了清屏*/ search()。) { system(cls)。||ch==39。 if(ch==39。 rewind(stdin)。 printf(\n\n\n\n\n\n\n\n\n\n\t 沒有找到該書信息,可能書號輸入有誤,是否再次輸入書號?\n\n)。 else p1=p1next。 p1=head。/*書號唯一*/ rewind(stdin)。 printf(\n\n\t\t收費標(biāo)準(zhǔn):一級會員打9折 二級會員打8折\n\n\t\t\t三級會員打7折 四級會員打6折 )。 p4next=NULL。 return。 rewind(stdin)。 if(p1==NULL||T==0) /*文件不存在或書庫中沒書*/ { printf(\n\n\n\n\n\n\n\n\n\n\t\t\t\t當(dāng)前書庫沒書!!!)。 else v1=v1vnext。 scanf(%s,vipnum)。 /*保存所購買書的總費*/ v1=vhead。 int i=0。 char bnum[11]。 p = gmtime(amp。 time(amp。 char vipnum[6]。 printf(\n)。 break。 break 。 case 2 : system(cls)。buy_by_huiyuan()。choice1)。 printf(\t請選擇操作:)。 printf( 0 : 返回主界面 \n)。 printf( 1 : 會員購買 \n)。 printf( )。 /*顯示菜單*/ printf( *************銷售管理************* )。 /*系統(tǒng)清屏*/ int choice1。 system(cls)。 rewind(stdin)。 } printf(\n)。 while(v2discount!=NULL) { printf(%18s%10s%5d % %5f\n,v2vnum,v2vname,v2level,v2persum,v2discount)。 } else { printf(\n\n\t\t *************當(dāng)前書庫信息*************\n)。/*清空緩沖區(qū)*/ getchar()。 printf(\n\n\t\t 按回車鍵返回:)。 }}void listvip(){ v2=vhead。 if(fclose(vfp)) { printf(文件關(guān)閉失敗!\n)。 rewind(stdin)。 free(v2)。 } v1=NULL。 v2vnext=v1。v2discount)。v2level,amp。v2vnum,amp。 while(!feof(vfp)) { V++。 return。 printf(\n\n 按回車鍵繼續(xù):)。 }void loadvip() /*開始導(dǎo)入會員信息*/{ FILE *vfp。/*清空緩沖區(qū)*/ getchar()。 } printf(銷售信息列出完畢,按回車鍵返回子菜單:)。 } (s2snext)=s2=NULL。 while(s2count!=NULL) { printf(%f,s2count)。 { printf(\n\n\t\t *************當(dāng)前銷售信息*************\n)。 exit(0)。 rewind(stdin)。 free(s2)。 } s1=NULL。 s2snext=s1。s2count)。 while(!feof(vfp)) { S++。 return。}void loadsales() /*開始導(dǎo)入銷售信息*/{ FILE *vfp。 } }while (choice4!=0)。 case 0 : system(cls)。yearsales()。 break 。 case 2 : system(cls)。daysales()。choice4)。 printf(\t請選擇操作:)。 printf( 0 : 返回主界面 \n)。 printf( 2 : 月銷售額 \n)。 printf( 功能選項: \n)。 printf( )。 do { printf( )。 }}void salesmanage() { system(cls)。/*清空緩沖區(qū)*/ if(fclose(fp)) { printf(文件關(guān)閉失敗!\n)。 printf(\n\n\t\t\t%d項圖書信息已經(jīng)由系統(tǒng)自動載入.\n\n\t\t\t,T)。 } free(p2)。p7price,amp。p7bname,amp。 fscanf(fp,%s%s%s%f%d,amp。 p1=p2。 /*繼續(xù)開辟一個新單元,直到文件讀完*/ p1next=p2。 *p1=*p7。p7acount)。p7author,amp。p7bnum,amp。 p7=(struct book*)malloc(LEN)。 } head=p3=p1=(struct book*)malloc(LEN)。 getchar()。 if((fp=fopen(,r))==NULL) /*打開文件*/ { printf(\n\n 文件打開失敗或文件不存在\n)。}void loadbook() /*開始導(dǎo)入書庫信息*/{ FILE *fp。}void wele() /*歡迎界面顯示*/{ system(cls)。 } }while (choice1!=0)。 case
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1