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

正文內(nèi)容

c課程設(shè)計商品銷售管理系統(tǒng)-文庫吧資料

2024-11-21 06:56本頁面
  

【正文】 進(jìn)價 售價 供應(yīng)商 已售量 endl。 if(!fout) { coutcannot open the file!endl。 } void save() //寫入數(shù)據(jù)至文件 { ofstream fout。i++) if(t[i].getCount()0 ) showData(i)。 for(int i=0。 } } } } 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。 t[i]=t[n]。in。//售出此產(chǎn)品 0 個 cout若商品添加完畢,請按 1 退出添加 !endl。 t[n].setGys(gys)。 cout供應(yīng)商 :。 cinoprice。 t[n].setBuy(iprice)。 cout進(jìn)價 :。 cincount。 t[n].setName(name)。 cout商品名 :。 if(id==1) break。n++) { cout商品編號 :。 Data temp。 if(n0) n=0。 float oprice。 //字符數(shù)組 int count。 //商品數(shù)量 public: void newFile() { int id。 (2)商品類 class Commodity //商品類 { private: Data t[50]。 } — 4— //................... void setGys(char g[]) { strcpy(gys,g)。 } void setBuy(float i) { iprice=i。 } void setCount(int c) { count=c。 } // void setId(int n) { id=n。 } float getSale() { return oprice。 } int getSaleCount() { return salecount。 } char *getName() { return name。//售價 char gys[20]。//已售數(shù)量 float iprice。//產(chǎn)品名稱 int count。 三、詳細(xì)設(shè)計 (1)數(shù)據(jù)類 class Data //數(shù)據(jù)類 { private: int id。} (2)數(shù)據(jù)類 —— 實現(xiàn)對數(shù)據(jù)的輸入輸出。 int c。 //商品數(shù)量 public: void newFile() //添加商品信息 void showData(int i) //顯示商品信息 void showData() //
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1