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

正文內(nèi)容

模擬超市商品管理系統(tǒng)(編輯修改稿)

2024-12-22 15:53 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 模擬超市商品管理系統(tǒng) endl。 cout==============================================endl。 cout 1. 添加商品信息 endl。 cout 2. 售出商品信息 endl。 cout 3. 查詢商品信息 endl。 cout 4. 離開本程序 endl。 cout==============================================endl。 cout 程序版本: Bate 1endl。 cout CopyRight@2020 楊陽 626 編程小組 endl。 cout請(qǐng)選擇 14endl。 }。 //添加商品函數(shù) void AddInfo() { char x。 do { ShowMeMenu()。//顯示添加商品信息菜單 x=getch()。 switch(x) { case 49://如果輸入“ 1”則調(diào)用添加新商品信息函數(shù) { AddNewGoods()。 break。 } case 50://如果輸入“ 2”則調(diào)用添加商品庫存量函數(shù) { AddNumber()。 break。 } case 51://如果輸入“ 3”或者“ ESC”則提示返回 case 27: { cout您確定要返回嗎 (Y/N):endl。 x=getch()。 if(x64 amp。amp。 x81)x=x+32。 if(x==13)x=39。y39。 break。 } case 121: default ://如果輸入其它字符則提示錯(cuò)誤信息 { cout抱歉,我沒有找到你要的選項(xiàng)。 \n按任意鍵 繼續(xù) !endl。 getch()。 } }。 }while(x!=39。y39。)。 }。 void ShowMeMenu() { system (cls)。 cout==============================================endl。 cout 模擬超市商品管理系統(tǒng) endl。 cout==============================================endl。 cout 添加商品信息 endl。 coutendl。 cout 1. 添加新商品信息 endl。 cout 2. 添加商品庫存量 endl。 cout 3. 返回上一級(jí)菜單 endl。 cout==============================================endl。 cout請(qǐng)選擇 13endl。 }。 void AddNewGoods() { char x。 do { ShowAddMenu()。//顯示選擇商品類型菜單 x=getch()。 switch(x) { case 49://如果輸入“ 1”則調(diào)用添加食品類函數(shù) { AddFoods()。 x=39。y39。 break。 } case 50://如果輸入“ 2”則調(diào)用添加電器類函數(shù) { AddElectric()。 x=39。y39。 break。 } case 51://如果輸入“ 3”則調(diào)用添加日用品類函數(shù) { AddOrdinaryGood()。 x=39。y39。 break。 } case 52://如果輸入“ 4”或者“ ESC”則提示返回 case 27: { cout您確定要返回嗎 (Y/N):endl。 x=getch()。 if(x64 amp。amp。 x81)x=x+32。 if(x==13)x=39。y39。 break。 } case 121: default ://如果輸入其它字符則提示錯(cuò)誤信息 { cout抱歉,我沒有找到你要的選項(xiàng)。 \n按任意鍵繼續(xù) !endl。 getch()。 } }。 }while(x!=39。y39。)。 }。 //選擇商品類型菜單 void ShowAddMenu() { system (cls)。 cout==============================================endl。 cout 模擬超市商品管理系統(tǒng) endl。 cout==============================================endl。 cout 選擇商品類型 endl。 coutendl。 cout 1. 食品類 endl。 cout 2. 家電產(chǎn)品類 endl。 cout 3. 日用產(chǎn)品類 endl。 cout 4. 返回上一級(jí)菜單 endl。 cout==============================================endl。 cout請(qǐng)選擇 13endl。 }。 //添加食品類函數(shù) void AddFoods() { //定義常量與變量 static int num。 char name[20]。 long id。 double price。 int number。 char producer[40]。 int keepday。 char note[100]。 //輸入商品信息 num=Foods::GetCount()。 cout請(qǐng)輸入: endl。 cout產(chǎn)品名稱: 。 cinname。 cout產(chǎn)品 ID: 。 cinid。 cout產(chǎn)品價(jià)格: 。 cinprice。 cout產(chǎn)品庫存量: 。 cinnumber。 cout產(chǎn)品生產(chǎn)商: 。 cinproducer。 cout產(chǎn)品保質(zhì)期: 。 cinkeepday。 cout產(chǎn)品備注: 。 cinnote。 //保存商品信息 food[num].SetInfo(name,id,price,number,producer,note)。 food[num].SetMeInfo(keepday)。 //顯示商品信息 coutendl。 food[num].ShowInfo()。 } //添加電器類函數(shù) void AddElectric() { //定義常量與變量 static int num。 char name[20]。 long id。 double price。 int number。 char producer[40]。 char color[10]。 char volt[8]。 int fixday。 char note[100]。 //輸入商品信息 num=Electric::GetCount()。 cout請(qǐng)輸入: endl。 cout產(chǎn)品名稱: 。 cinname。 cout產(chǎn)品 ID: 。 cinid。 cout產(chǎn)品價(jià)格: 。 cinprice。 cout產(chǎn)品庫存量: 。 cinnumber。 cout產(chǎn)品生產(chǎn)商: 。 cinproducer。 cout產(chǎn)品顏色: 。 cincolor。 cout產(chǎn)品額定電壓: 。 cinvolt。 cout產(chǎn) 品保修期: 。 cinfixday。 cout產(chǎn)品備注: 。 cinnote。 //保存商品信息 e
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1