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

正文內(nèi)容

c課程設(shè)計(jì)商品銷(xiāo)售管理系統(tǒng)-wenkub

2022-11-24 06:56:29 本頁(yè)面
 

【正文】 Void setcount(int c) //庫(kù)存量 Void setsalecount(int s) //已售量 Void setbuy(float i) //進(jìn)價(jià) Void setsale(float o) //售價(jià) Void setgys(char g[]) //供應(yīng)商 }。 //庫(kù)存數(shù)量 int salecount。 記錄每一次銷(xiāo)售商品的數(shù)量和價(jià)格,并提供對(duì)已售出商品的價(jià)格、數(shù)量進(jìn)行統(tǒng)計(jì)、排序功能,但允許用戶退商品。 (要求: C輸入輸出 ,適當(dāng)?shù)淖⑨專(zhuān)?) 二、 概要設(shè)計(jì) 數(shù)據(jù)類(lèi)( class Data)的數(shù)據(jù)類(lèi)型定義: class Data //數(shù)據(jù)類(lèi) { private: int id。 //已售數(shù)量 float iprice。 class modity 商品類(lèi)設(shè)計(jì): class Commodity //商品類(lèi) { private: Data t[50]。 int c。 三、詳細(xì)設(shè)計(jì) (1)數(shù)據(jù)類(lèi) class Data //數(shù)據(jù)類(lèi) { private: int id。//已售數(shù)量 float iprice。 } char *getName() { return name。 } float getSale() { return oprice。 } void setCount(int c) { count=c。 } — 4— //................... void setGys(char g[]) { strcpy(gys,g)。 //商品數(shù)量 public: void newFile() { int id。 float oprice。 Data temp。 if(id==1) break。 t[n].setName(name)。 cout進(jìn)價(jià) :。 cinoprice。 t[n].setGys(gys)。in。 } } } } void showData(int i) { coutt[i].getId() setw(10)t[i].getName() setw(10)t[i].getCount() setw(10)t[i].getSaleCount() — 6— setw(8)t[i].getBuy() setw(8)t[i].getSale() setw(8)t[i].getGys()endl。i++) if(t[i].getCount()0 ) showData(i)。 if(!fout) { coutcannot open the file!endl。in。 } int search() { int id。 while(low=high) { mid=(low+high)/2。 — 7— } return 1。 if(temp==1) { coutcannot find the modity!endl。 cout輸入數(shù)量 :。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1