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

正文內(nèi)容

c語言圖書銷售系統(tǒng)(源代碼)-全文預(yù)覽

2025-08-15 09:18 上一頁面

下一頁面
  

【正文】 。 if(p1==NULL||T==0) /*文件不存在或書庫中沒書*/ { printf(\n\n\n\n\t\t\t\t當前書庫沒書!!!)。/*清空緩沖區(qū)*/ printf(\n\n\t\t\t 按回車鍵返回主菜單)。/*書未銷售,本數(shù)加上*/ printf(\n\n\t\t\t\t 撤銷完畢!!!!)。p4!=NULL。n39。 printf(\n\n\t\t\t 按任意鍵確認,按N撤銷購書:)。/*結(jié)束購書*/ free(p4)。amp。 system(cls)。 p4=p4next。system(cls)。 p4next=NULL。 p5=(struct book*)malloc(LEN)。 } if(p1!=NULLamp。 system(cls)。/*沒有需要的書,結(jié)束輸入書號*/ p1=head。 printf(\n\n\t\t\t\t請重新輸入書號:)。) { system(cls)。 if(ch==39。 printf(\n\n\n\n\n\n\n\n\n\n\t 沒有找到該書信息,可能書號輸入有誤,是否再次輸入書號?\n\n)。 p1=head。 p4next=NULL。 rewind(stdin)。 float sum=0。 getchar()。 save_flag=1。 /*書未銷售,本數(shù)加上*/ printf(\n\n\t\t\t\t 撤銷完畢!!!!)。p4!=NULL。n39。 printf(\n\n\t\t\t 按任意鍵確認,按N撤銷購書:)。/*結(jié)束購書*/ free(p4)。amp。 system(cls)。 p4=p4next。system(cls)。 p4next=NULL。 p5=(struct book*)malloc(LEN)。 } if(p1!=NULLamp。 system(cls)。/*沒有需要的書,結(jié)束輸入書號*/ p1=head。 printf(\n\n\t\t\t\t請重新輸入書號:)。) { system(cls)。 if(ch==39。 printf(\n\n\n\n\n\n\n\n\n\n\t 沒有找到該書信息,可能書號輸入有誤,是否再次輸入書號?\n\n)。 p1=head。 printf(\n\n\t\t收費標準:一級會員打9折 二級會員打8折\n\n\t\t\t三級會員打7折 四級會員打6折 )。 return。 if(p1==NULL||T==0) /*文件不存在或書庫中沒書*/ { printf(\n\n\n\n\n\n\n\n\n\n\t\t\t\t當前書庫沒書!!!)。 scanf(%s,vipnum)。 int i=0。 p = gmtime(amp。 char vipnum[6]。 break。 case 2 : system(cls)。choice1)。 printf( 0 : 返回主界面 \n)。 printf( )。 /*系統(tǒng)清屏*/ int choice1。 rewind(stdin)。 while(v2discount!=NULL) { printf(%18s%10s%5d % %5f\n,v2vnum,v2vname,v2level,v2persum,v2discount)。/*清空緩沖區(qū)*/ getchar()。 }}void listvip(){ v2=vhead。 rewind(stdin)。 } v1=NULL。v2discount)。v2vnum,amp。 return。 }void loadvip() /*開始導(dǎo)入會員信息*/{ FILE *vfp。 } printf(銷售信息列出完畢,按回車鍵返回子菜單:)。 while(s2count!=NULL) { printf(%f,s2count)。 exit(0)。 free(s2)。 s2snext=s1。 while(!feof(vfp)) { S++。}void loadsales() /*開始導(dǎo)入銷售信息*/{ FILE *vfp。 case 0 : system(cls)。 break 。daysales()。 printf(\t請選擇操作:)。 printf( 2 : 月銷售額 \n)。 printf( )。 }}void salesmanage() { system(cls)。 printf(\n\n\t\t\t%d項圖書信息已經(jīng)由系統(tǒng)自動載入.\n\n\t\t\t,T)。p7price,amp。 fscanf(fp,%s%s%s%f%d,amp。 /*繼續(xù)開辟一個新單元,直到文件讀完*/ p1next=p2。p7acount)。p7bnum,amp。 } head=p3=p1=(struct book*)malloc(LEN)。 if((fp=fopen(,r))==NULL) /*打開文件*/ { printf(\n\n 文件打開失敗或文件不存在\n)。}void wele() /*歡迎界面顯示*/{ system(cls)。 case 0 : system(cls)。 break 。search()。 case 2 : system(cls)。choice1)。 printf( 0 : 返回主界面 \n)。 printf( 2 : 圖書信息瀏覽 \n)。 printf( )。 /*返回用戶的選擇*/}void bookmanage() { system(cls)。 rewind(stdin)。 printf( \n\n)。 /*系統(tǒng)清屏*/ printf(\n *************************主菜單*************************\n\n)。/*清空緩沖區(qū)*/ getch()。break。 case 5:system(cls)。break。buy()。 /*自動導(dǎo)入書庫信息*/ while(1) { switch(menu()) { case 1:system(cls)。 /*銷售統(tǒng)計*/int main() /*主函數(shù)*/{ wele()。 /*刪書時,是否調(diào)用過顯示已售完書功能標志*/int T=0。 /*head和head2分別用于書庫的頭指針和已購書的頭指針*/struct book *p1,*p2,*p3,*p4,*p5,*p6。 /*退出*/int menu()。 /*修改密碼*/void bover()。 /*通過書號刪除*/void delet_by_bname()。 /*列出書庫信息*/void listvip()。 /*通過書號查詢*/void search_by_bname()。 /*日銷售額*/void monthsales()。 /*歡迎界面顯示*/void inputbook()。 struct vip *vnext。 char vname[41]。struct sales{ float count。 /*作者*/ float price。int V,S。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。struct sales *s1,*s2。 /*書名*/ char author [20]。}。struct vip{ char vnum[12]。 float discount。 /*自動讀入書庫信息*/void wele()。 /*自動錄入銷售信息*/void daysales()。 /*查詢書數(shù)量*/void search_by_bnum()。 /*購買書籍*/void list()。 /*刪除書目*/void delet_by_bnum()。 /*保存記錄*/void redef()。 /*非會員買書*/void exit0()。 /*顯示刪除菜單*/struct book *head=NULL,*head2=NULL。 /*買書時,是否調(diào)用過查詢功能標志*/int shan_flag=0。void salesmanage()。 loadvip()。 case 2:system(cls)。listvip()。break。exit0()。 rewind(stdin)。 system(cls)。 printf( \n\n)。 printf(請輸入您的選擇(0~8):)。 return choice。 /*顯示菜單*/ printf( *************圖書管理************* )。 printf( 1 : 圖書信息錄入 \n)。 printf( 5 : 圖書信息保存 \n)。 scanf(%d, amp。 break。 case 3 : system(cls)。delet()。 break 。 printf(\n)。 struct book *p7。 return。 /*作為一個臨時存儲空間,避免讀取文件最后的回車符*/ fscanf(fp,%s %s %s %f %d,amp。p7price,amp。 /*文件沒結(jié)束就將p7中的信息給p1*/ p2=(struct book*)malloc(LEN)。 p1next=NULL。p7author,amp。 /*釋放多申請的一個單元*/ p3next=NULL。 exit(0)。 /*顯示菜單*/ printf( *************銷售統(tǒng)計************* )。 printf( 1 : 日銷售額 \n)。 printf(
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1