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

正文內(nèi)容

超市商品管理系統(tǒng)課程設(shè)計(jì)報(bào)告(編輯修改稿)

2025-08-19 07:53 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 查詢到商品的所有信息。 程序源代碼include iostreaminclude fstreaminclude include include //用getch()。using namespace std。class Goods //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌Goods類﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌{public: Goods() { } int kind。 char name[20]。//哇哈哈 char Id[20]。 char place[10]。 char brand[10]。 float buyprice。 //進(jìn)貨價(jià); float saleprice。 //賣(mài)出價(jià); int amount。 //存貨數(shù)量; int amount1。 //售貨數(shù)量; int profit。 //凈利潤(rùn); Goods * Next。 void InputAll() { InputName()。 InputKind()。 InputID()。 InputOther()。 } void InputKind() { cout\t\t請(qǐng)選擇種類:。cinkind。 } void InputName() { cout\t\t請(qǐng)輸入商品的名稱:。 cinname。 } void InputID() { cout\t\t請(qǐng)輸入商品的編號(hào):。 cinId。 } void InputBuyprice() { cout\t\t請(qǐng)輸入進(jìn)貨價(jià):。 cinbuyprice。 } void InputSaleprice() { cout\t\t請(qǐng)輸入售出價(jià):。 cinsaleprice。 } void InputAmount() { cout\t\t請(qǐng)輸入剩余商品數(shù)量:。 cinamount。 } void InputProfit() { cout\t\t請(qǐng)輸入凈利潤(rùn):。 cinprofit。 } void InputPlace() { cout\t\t請(qǐng)輸入商品產(chǎn)地:。 cinplace。 } void Inputbrand() { cout\t\t請(qǐng)輸入生產(chǎn)商品牌:。 cinbrand。 } void InputOther() { cout\t\t請(qǐng)輸入進(jìn)貨價(jià):。 cinbuyprice。 cout\t\t請(qǐng)輸入售出價(jià):。 cinsaleprice。 cout\t\t請(qǐng)輸入存貨數(shù)量:。 cinamount。 cout\t\t請(qǐng)輸入商品的產(chǎn)地:。 cinplace。 cout\t\t請(qǐng)輸入生產(chǎn)商品牌:。 cinbrand。 profit=0。 } void ReadFile(istream amp。 in) { innamekindIdbuypricesalepriceamountplacebrandprofit。 } void Show() { cout商品名: nameendl種類:kindendl編號(hào): Idendl進(jìn)貨價(jià) buypriceendl售出價(jià) salepriceendl剩余商品數(shù)量: amountendl凈利潤(rùn):profitendl商品的產(chǎn)地: placeendl生產(chǎn)商品牌: brandendlendlendl。 }}。class Goodsmessage : public Goods //﹌﹌﹌﹌﹌﹌﹌﹌﹌Goodsmessage類﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌ { public: Goodsmessage()。 ~Goodsmessage()。 void showMenu(int n)。 void Find()。 void Save()。 void ModifyItem()。 void RemoveItem()。 void Swap(Goods *,Goods *)。 void Paixu()。 void Saleprice()。 //void Chack()。 int ListCount()。 void Display() { system(cls)。 i=0。 for(Goods * p=HeadNext。p!=End。p=pNext) { pShow()。 i++。 } cout共有i個(gè)商品\nendl。 cout輸入任意字符!繼續(xù)……。 getch()。 } void AddItem()//從鍵盤(pán)輸入商品信息 { system(cls)。 EndInputName()。 showMenu(1)。 EndInputKind()。 do { EndInputID()。 }while(FindID(EndId))。 EndInputOther()。 EndNext = new Goods。 End=EndNext。 cout添加成功!endl。 Save()。 cout輸入任意字符!繼續(xù)……。 getch()。 } private: Goods * Head,* End。 int i。 ifstream in。 ofstream out。 Goods *FindItem(char * name) { for(Goods * p=Head。pNext!=End。p=pNext)//匹配成功則返回上一個(gè)指針,不成功就返回空 if(!strcmp(pNextname,name))return p。 return NULL。 } Goods *FindID(char * Id) { for(Goods * p=Head。pNext!=End。p=pNext)//匹配成功則返回上一個(gè)指針,不成功就返回空 if(!strcmp(pNextId,Id))return p。 return NULL。 } }。 Goodsmessage::Goodsmessage() //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌構(gòu)造函數(shù)﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌ { Head=new Goods。 HeadNext=new Goods。 End=HeadNext。 ()。 if(!in) cout無(wú)商品信息。請(qǐng)先進(jìn)貨。endl。 else { while(!()) { EndReadFile(in)。 if(Endname[0]==39。\039。)break。 EndNext=new Goods。 End=EndNext。 } ()。 cout\t\t\t\t讀取商品信息成功!\nendl。 } } Goodsmessage::~Goodsmessage() //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌析構(gòu)函數(shù)﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌ { //Save()。 for(Goods * temp。HeadNext!=End。) { temp=HeadNext。 HeadNext=HeadNextNext。 delete temp。 } delete Head,End。 } void Goodsmessage::showMenu(int n)//菜單 //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌菜單﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌ { switch(n) { case 1: { cout********************************************************************************\n 1. 食品 2. 化妝品 3. 日用品 4. 飲料 \n ********************************************************************************\nendl。 break。} case 2: { system(cls)。 cout▉▉▉▉▉▉▉▉▉▉ ☆ 超 市 商 品 管 理 系 統(tǒng) ☆ ▉▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout▉▉▉▉▉▉▉▉▉★ ☆ ☆ ★▉▉▉▉▉▉▉▉▉endl。 cout\t\t\n\t\t\t\t 請(qǐng)選擇:08endl。 break。} case 3: { system(cls)。 cout********************************************************************************\n \t 1. 修改商品名 4. 修改進(jìn)貨價(jià)\t\t7. 修改凈利潤(rùn)\n \t 2. 修改種類 5. 修改售出價(jià)\t\t8. 修改修改商品產(chǎn)地\n \t 3. 修改編號(hào) 6. 修改剩余商品量\t\t9. 修改生產(chǎn)商品牌\n \t\t\t\\n ********************************************************************************endl。 cout\t\t\n\t\t\t\t 請(qǐng)選擇:010endl。 break。 } case 4: { system(cls)。 cout********************************************************************************\n \t 1. 按進(jìn)貨價(jià)排序 2. 按庫(kù)存量排序 3. 按凈利潤(rùn)排序\n ********************************************************************************endl。 cout\t\t\n\t\t\t\t 請(qǐng)選擇:03endl。 break。 } case 5: { system(cls)。 cout\n\t\t *********************************\n。 cout\t\t *****
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1