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

正文內(nèi)容

c課程設(shè)計商品銷售管理系統(tǒng)(編輯修改稿)

2024-12-19 06:56 本頁面
 

【文章內(nèi)容簡介】 { int id。 char name[50]。 //字符數(shù)組 int count。 float iprice。 float oprice。 char gys[20]。 if(n0) n=0。 int i。 Data temp。 for(。n++) { cout商品編號 :。 cinid。 if(id==1) break。 t[n].setId(id)。 cout商品名 :。 cinname。 t[n].setName(name)。 cout庫存量 :。 cincount。 t[n].setCount(count)。 cout進價 :。 — 5— ciniprice。 t[n].setBuy(iprice)。 cout售價 :。 cinoprice。 t[n].setSale(oprice)。 cout供應(yīng)商 :。 cingys。 t[n].setGys(gys)。 t[n].setSaleCount(0)。//售出此產(chǎn)品 0 個 cout若商品添加完畢,請按 1 退出添加 !endl。 for(i=0。in。i++) { if(t[i].getId()t[n].getId()) { temp=t[i]。 t[i]=t[n]。 t[n]=temp。 } } } } 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。 } void showData() { cout商品編號 setw(8)商品名 setw(8)庫存量 setw(10)已售量 setw(10)進價 setw(8)售價 — 6— setw(8)供應(yīng)商 endl。 for(int i=0。in。i++) if(t[i].getCount()0 ) showData(i)。 cout產(chǎn)品種類 :nendl。 } void save() //寫入數(shù)據(jù)至文件 { ofstream fout。 (商品銷售管理系統(tǒng) .txt)。 if(!fout) { coutcannot open the file!endl。 return 。 } fout商品編號 商品名 庫存量 進價 售價 供應(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].getS
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1