c++ 倉庫管理手冊系統(tǒng)_第1頁
c++ 倉庫管理手冊系統(tǒng)_第2頁
c++ 倉庫管理手冊系統(tǒng)_第3頁
c++ 倉庫管理手冊系統(tǒng)_第4頁
c++ 倉庫管理手冊系統(tǒng)_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、#include#includeusing namespace std;const int m=100; um=i+1;;coutgoodsi.price;coutgoodsi.quantity;coutendl;coutn輸入的信息:endl;for(i=0;iamount;i+)cout貨號(hào):goodsi.numends;cout貨品名:ends;cout單價(jià):goodsi.priceends;cout庫存量:goodsi.quantityendsendl;ofstream os(,ios_base:out|ios_base:binary

2、); umends;cout貨品名:ends;cout單價(jià):goodsn.priceends;cout庫存量:goodsn.quantityendsendl;return 1;void Store:Dig() um=amount+i+1;coutgoodsamount+;coutgoodsamount+i.price;coutgoodsamount+i.quantity;coutn輸入的信息endl;for(i=0;iamount+n;i+)cout貨號(hào):goodsi.numends;cout貨品名:ends;cout單價(jià):goodsi.

3、priceends;cout庫存量:goodsi.quantityendsendl;amount=amount+n;ofstream os(,ios_base:out|ios_base:binary); ame;coutgoodsn-1.price;coutgoodsn-1.quantity;coutendl;cout修改后的信息:endl;for(i=0;iamount;i+)cout貨號(hào):goodsi.numends;cout貨品名:ends;cout單價(jià):goodsi.priceends;cout庫存量:goodsi.quantityendsendl;ofstrea

4、m os(,ios_base:out|ios_base:binary); umends;cout貨品名:ends;cout單價(jià):goodsn-1.priceends;cout庫存量:goodsn-1.quantityendsamount)cout輸入錯(cuò)誤,請(qǐng)重新輸入:amount);void Store:Search_name() ame,x)=0) name和xflag = 1;cout貨號(hào):goodsi.numends;cout貨品名:ends;cout單價(jià):goodsi.priceends;cout庫存量:goodsi.quantityen

5、dsendl;else;if (flag = 0)cout輸入錯(cuò)誤,請(qǐng)重新輸入:ends;while(flag = 0);void Store:Show() umends;cout貨品名:ends;cout單價(jià):goodsi.priceends;cout庫存量:goodsi.quantityendsendl;void Store:Short() uantity=y)flag = 1;cout貨號(hào):goodsi.numends;cout貨品名:ends;cout單價(jià):goodsi.priceends;cout庫存量:goodsi.quantityend

6、sendl;else;if (flag = 0)cout沒有貨物,請(qǐng)重新輸入:ends;while(flag = 0);void Store:Delete() ame,y)=0)name和yfor(;iamount;i+)goodsi=goodsi+1;goodsi.num=i+1;amount=amount-1; umends;cout貨品名:ends;cout單價(jià):goodsm.priceends;cout庫存量:goodsm.quantityendsendl;ofstream os(,ios_base:out|ios_base:binary); 入貨物信息 *end

7、l;coutt* 2.查詢貨物信息 *endl;coutt* 3.顯示貨物信息 *endl;coutt* 4.顯示不足貨物 *endl;coutt* 5.刪除貨物信息 *endl;coutt* 6. 退出系統(tǒng) *endl;coutt*endl;cout請(qǐng)輸入你要進(jìn)行的操作(16):endl;int main() 建表單endl;cout2.從文件導(dǎo)入endl;cout3.插入信息endl;cout4.修改信息endl;cout5.返回主菜單a;coutendl;switch(a)case 1: 編號(hào)查詢endl;cout2.按名稱查詢endl;cout3.返回主菜單a;coutendl;switch(a)case 1: /調(diào)用函數(shù)(按貨號(hào)查)();break;case 2: /調(diào)用函數(shù)(按貨名查)();break;case 3:break;default:cout您的輸入有誤,請(qǐng)重新選擇endl;break;break;case 3: /顯示();break;case 4

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論