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

正文內(nèi)容

超市管理系統(tǒng)c語(yǔ)言課程設(shè)計(jì)(參考版)

2024-08-29 21:45本頁(yè)面
  

【正文】 7. void shopping()。 void Birthdayperson()。 void Goodseffect()。 void delgoods()。 超市管理系統(tǒng) C 語(yǔ)言課程設(shè)計(jì) void findgoods()。 void saveAll()。 void updatecust()。 4. void addcust()。 } } } Header Files 1. pcontinue()。 Saveall()。 printf(\n*****************找回現(xiàn)金 :%d\n,y)。 +=buymenu。x)。 printf(\n*******************實(shí)收現(xiàn)金 :\n)。 else break。y39。 printf(\n您是否繼續(xù)購(gòu)買(mǎi)? (y/n):)。quality)。 printf(\n請(qǐng)輸入您需要購(gòu)買(mǎi)的商品數(shù)量 :)。} else{ printf(\n編號(hào) \t 名稱(chēng) \t生產(chǎn)期 \t\t單價(jià) )。 } shopping=goods[i]。 getch()。 } } if(i==number){ printf(\n沒(méi)有找到您想購(gòu)買(mǎi)的商品 \n)。inumber。m)。j++){ printf(\n請(qǐng)您輸入顧客需要購(gòu)買(mǎi)的商品編號(hào) :)。 for(j=0。 system(cls)。 struct goods shopping。 int i,j。 } void shopping(){ int m,quality,x。 } //寫(xiě)入 fwite(指針,長(zhǎng)度,個(gè)數(shù),文件指針 )。i++){ fwrite(amp。 } for(i=0。 if((fp=fopen(,wb))==NULL){ printf(\n 無(wú)法打開(kāi)文件 \n)。 //現(xiàn)在 文件中總的紀(jì)錄條數(shù) void Saveall(){ FILE*fp。 //出售量 }goods[100000]。 //單價(jià): int save。 //生產(chǎn)期 double expenda。 //編碼: char name[20]。 }。 int month。} } } pcontinue()。 if(Month==){ printf(\n客戶(hù)編號(hào) \t 名字 \t\t 生日 \n)。i++){ Bperson=cust[i]。 for(i=0。Month)。 printf(請(qǐng)輸入您想查詢(xún)的月份 :\n)。 getch()。 if(total=0){ 超市管理系統(tǒng) C 語(yǔ)言課程設(shè)計(jì) printf(\n暫無(wú)此任何歷史數(shù)據(jù) \n)。 total=read_message()。} } void Birthdayperson(){ int i,Month。 } BreakLine。itotal。 printf(\n\t名次 \t名稱(chēng) \t剩余量 \n)。 q[i]=temp。j++){ if(q[i]saveq[j]save){ temp=q[j]。i++){ for(j=i+1。 } for(i=0。itotal。 } else{ p=goods。 超市管理系統(tǒng) C 語(yǔ)言課程設(shè)計(jì) printf(\n按任意鍵繼續(xù) \n)。 system(cls)。 struct goods *temp。 struct goods *p。 pcontinue()。i++){ printf(\n\t%d\t%s\t%d\n, (i+1),q[i]name,q[i]sell)。 for(i=0。} } } printf(\n********最具影響力的商品排行榜 **********\n)。 q[j]=q[i]。jtotal。itotal1。i++){ q[i]=p++。 for(i=0。 getch()。 if(total=0){ printf(\n暫無(wú)此任何商品歷史數(shù)據(jù) \n)。 //用于交換的臨時(shí)量 // 讀出全部 Goods 數(shù)據(jù) total=read_Message()。 // 指向結(jié)構(gòu)體數(shù)組的指針 struct goods *q[1000]。 } void Goodseffect(){ int i,j。 } pcontinue()。itotal。 printf(\n\t名次 \t 姓名 \t花費(fèi) \n)。 q[i]=temp。j++){ //通過(guò)指針找元素 //q[i]expenditure if(q[i]expenditureq[j]expenditure){ temp=q[j]。超市管理系統(tǒng) C 語(yǔ)言課程設(shè)計(jì) 注意:排序是對(duì) q 進(jìn)行排序 for(j=i+1。itotal1。i++){ //循環(huán) total 次,將數(shù)組中每個(gè)元素的地 址賦值給 *q q[i]=p++。 //cust 是數(shù)組名,數(shù)組名就是數(shù)組的首地址 for(i=0。 getch()。 if(total=0){ printf(\n暫無(wú)任何客戶(hù)歷史數(shù)據(jù) \n)。 //用于交換的臨時(shí)量 // 讀出全部 cust 數(shù)據(jù) total=read_message()。 // 指向結(jié)構(gòu)體數(shù)組的指針 struct cust *q[1000]。 //現(xiàn)在 文件中總的紀(jì)錄條數(shù) //排序: //指針: void showVIP(){ int i,j。 //出售量 }goods[100000]。 //單價(jià): int save。 //生產(chǎn)期 struct date:表示結(jié)構(gòu)體類(lèi)型date 型 scday 變量名 生日 : struct date int expenda。 //編碼: char name[20]。 //最多存 1000 個(gè)客戶(hù)信息 int total。 //電話(huà)號(hào)碼 struct data birthday。 //名字 double expenditure。 struct cust{ int no。 int day。 struct data{ int year。} 6. include include include include include include int read_message()。 } printf(\n 按任意鍵繼續(xù) \n)。 } BreakLine。i++){ c=goods[i]。 for(i=0。 if(total0){ printf(\n***********顯示所有商品信息 *************\n)。 printf(\n********************商品信息 **********\n)。 total=read_Message()。 } void findgoods(){ int i。 pcontinue()。 saveall()。 } goods[i]=gx。 getch()。){ printf(\n放棄修改,返回上一級(jí) \n)。 if(choice==39。 printf(親愛(ài)的管理員,您確定要修改嗎? (y/n))。)。 printf(\n請(qǐng)輸入商品庫(kù)存量 :)。 scanf(%d,amp。)。 printf(\n請(qǐng)輸入商品單價(jià) :)。 scanf(%d,amp。)。,amp。 printf(\n請(qǐng)輸入商品生產(chǎn)期 :(格式如下 :199999):)。 scanf(%s,amp。)。 printf(\n 請(qǐng)輸入商品編碼 :)。 return。 pcontinue()。i++){ if(todelno==goods[i].no){ break。 for(i=0。 scanf(%d,amp。 total=read_Message()。n39。 超市管理系統(tǒng) C 語(yǔ)言課程設(shè)計(jì) struct goods gx。} void updategoods(){ int i。 pcontinue()。 saveall()。j++){ goods[j]=goods[j+1] 。 } for(j=i。 getch()。){ printf(\n放棄刪除,返回上一級(jí) \n)。 if(choice==39。 } printf(親愛(ài)的管理員, 刪除后無(wú)法恢復(fù),您確定要?jiǎng)h除嗎? (y/n))。 getch()。 } } //如果,沒(méi)有找到要?jiǎng)h除的商品 if(i==total){ printf(\n沒(méi)有找到您想刪除的商品 \n)。itotal。todelno)。 printf(\n 請(qǐng)輸入你要?jiǎng)h除的商品的編碼 :)。 system(cls)。 char choice=39。 } void delgoods(){ int i,j。y39。 choice=getch()。 fclose(fp)。 //如果打得開(kāi)文件 } //要保存 數(shù)據(jù)的地址 這個(gè)數(shù)據(jù)類(lèi)型的長(zhǎng)度 幾個(gè)數(shù)組文件指針 fwrite(amp。 //以上完成了輸入客戶(hù)信息的操作; //將 newcust 結(jié)構(gòu)體中的數(shù)據(jù)保存到一個(gè)磁盤(pán)文件中 if((fp=fopen(,ab))==NULL){ printf(無(wú)法打開(kāi)文件 )。 scanf(%d,amp。)。 printf(請(qǐng)輸入商品出售量 :)。 scanf(%d,amp。)。 printf(請(qǐng)輸入商品原價(jià) :)。,amp。 scanf(%d%d%d,amp。 BreakLine。 scanf(%s,amp。 //取地址因?yàn)樗且粋€(gè)基本類(lèi)型的數(shù)據(jù) BreakLine。 scanf(%d,amp。 printf(\n************添加商品信息 *************\n)。 //文件指針,用它指向一個(gè)文件 int i=0。y39。 } void addgoods(){ struct goods newgoods。goods[i],sizeof(struct goods),1,fp)。itotal。 return。 int i。 return i。 }else{ i++。goods[i],sizeof(struct goods),1,fp)。 return 0。 if((fp=fopen(,rb))==NULL){ printf(\n********暫無(wú)任何可讀信息,按任意鍵繼續(xù) *****)。 int read_Message(){ FILE *fp。 //出售量 }goods[100000]。 //單價(jià): int save。 //生產(chǎn)期 struct date:表示結(jié)構(gòu)體類(lèi)型 date 型 scday 變量名 生日 : struct date int expenda。 //編碼: char name[20]。 }。 int month。 getch()。 printf(\n刪除客戶(hù)數(shù)據(jù)成功 \n)。} total=1。
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1