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

正文內(nèi)容

c課程設(shè)計(jì)商品銷售管理系統(tǒng)-資料下載頁(yè)

2024-08-19 00:43本頁(yè)面
  

【正文】 out) { —15—coutcannot open the file!endl。 return 。 } fout商品編號(hào) 商品名 庫(kù)存量 進(jìn)價(jià) 售價(jià) 供應(yīng)商 已售量endl。 for(int i=0。in。i++) { foutt[i].getId()setw(14)t[i].getName()setw(10)t[i].getCount()setw(10)t[i].getBuy()setw(10)t[i].getSale()setw(10)t[i].getGys()setw(10)t[i].getSaleCount()。 } cout*************Save Success!*****************endl。 ()。} int search() { int id。 coutid:。 cinid。 int low=0,mid,high=n1。 while(low=high) { mid=(low+high)/2。 if(t[mid].getId()==id) return mid。 else if(t[mid].getId()id) high=mid1。 else low=mid+1。 } return 1。 } void sale() { cout產(chǎn)品編號(hào)。 int temp。 temp=search()。 if(temp==1) { coutcannot find the modity!endl。 return。 —16— } if(t[temp].getCount()=0) { cout此產(chǎn)品已缺!endl。 } int count。 cout輸入數(shù)量:。 cincount。 float money。 cout輸入收到金額(元):。 cinmoney。 if(count=0 amp。amp。 countt[temp].getCount())//輸入的是負(fù)數(shù)或超出該產(chǎn)品庫(kù)存量 —17— cout數(shù)量輸入不正確endl。 else if(moneyt[temp].getSale()*count) cout購(gòu)物金額不足,還需增加金額t[temp].getSale()*countmoney元endl。 else { t[temp].setCount(t[temp].getCount()count)。//當(dāng)前庫(kù)存減少count t[temp].setSaleCount(t[temp].getSaleCount()+count)。//出售量增加count cout***名稱:t[temp].getName()endl ***數(shù)量:countendl ***單價(jià):t[temp].getSale()元endl ***應(yīng)收:count*t[temp].getSale()元endl ***找零:moneycount*t[temp].getSale()元endl *************endl。 } } void showSale() { for(int i=0。in。i++) if(t[i].getSaleCount()0 ) showData(i)。 }}。inline void menu(){ cout ******歡迎使用商品銷售管理系統(tǒng)****** endl。 cout **************主菜單********** endl。 cout (1)添加 endl。 —17— cout (2)保存 endl。 cout (3)顯示 endl。 cout (4)菜單 endl。 cout (5)銷售單 endl。 cout (0)退出系統(tǒng) endl。 cout ********20112012******** endl。} void main(){ menu()。 Commodity 。 int c。 for(。) { cout 請(qǐng)選擇:。 cinc。 switch(c) { case 1:()。break。 case 2:()。break。 case 3:()。break。 case 4:menu()。break。 case 5:()。break。 case 0:{ cout ***********謝謝使用********** endl。 cout *********!再見!********** endl。 return。 } break。 } }} —18
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1