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

正文內(nèi)容

c面向?qū)ο蟪绦蛟O(shè)計(jì)超市管理系統(tǒng)課程設(shè)計(jì)(參考版)

2024-08-18 03:44本頁面
  

【正文】 coutendl================================================================================endl。 cout \t\t\t∷∷∷∷∷∷∷∷∷∷∷∷endlendl。 coutendl\t\t\t∷∷∷∷∷∷∷∷∷∷∷∷endl。 if(PassWord[0]==PassWord[1]) { system(cls)。 coutendl\t\t確認(rèn)您的新密碼:。 while(flag) { coutendl\t\t請(qǐng)輸入新密碼:。 coutendl 〓〓〓〓〓〓〓〓〓 ☆ 超 市 商 品 管 理 系 統(tǒng) ☆ 〓〓〓〓〓〓〓〓 endlendl。 } } } else if(x==2) { system(cls)。 } default: cout您的輸入有誤,請(qǐng)重新選擇!endl。//結(jié)束查詢,退出程序 break。 if(select==1) sign=1。 cout\t\t【1】返回\t【2】退出endl。 else ()。//執(zhí)行查詢信息 if(select==1) ()。//結(jié)束查詢,退出程序 break。 if(select==1) sign=1。 cout\t\t【1】返回\t【2】退出endl。 else ()。//執(zhí)行出售信息 if(select==1) ()。//結(jié)束查詢,退出程序 break。 if(select==1) sign=1。 cout\t\t【1】返回\t【2】退出endl。 else ()。//執(zhí)行增加商品的信息 if(select==1) ()。//調(diào)用Menu()語句 cinchoice。 if(x==1) { while(sign) { system(cls)。 coutendlendl\t\t\t請(qǐng)選擇:。 if(PassWord[0]==password) {Lo: Get_In()。 cout\t 登陸密碼:。//調(diào)用Loading()語句 coutendl\t 》》》》》》》》》》 登 陸 系 統(tǒng) 《《《《《《《《《《endl。getchar()。//調(diào)用Error()語句 exit(1)。 } fstream Write_ElectricalAppliance(C:\\SuperMarket\\,ios::in|ios::out)。//首先建立一個(gè)ElectricalAppliance文件保存ElectricalAppliance信息 if(!New_ElectricalAppliance) { Error()。//調(diào)用Error()語句 exit(1)。 } fstream Write_Food(C:\\SuperMarket\\,ios::in|ios::out)。//首先建立一個(gè)Food文件保存Food信息 if(!New_Food) { Error()。//調(diào)用Error()語句 exit(1)。 } fstream Write_DailyGoods(C:\\SuperMarket\\,ios::in|ios::out)。//首先建立一個(gè)DailyGoods文件保存DailyGoods信息 if(!New_DailyGoods) { Error()。//調(diào)用Error()語句 exit(1)。 ofstream outfile(C:\\SuperMarket\\,ios::out)。/***************************創(chuàng)建文件,用于讀取與輸出信息*****************************/ system(md C:\\SuperMarket)。 ElectricalAppliance electricalappliance。//控制循環(huán) DailyGoods dailygoods。//用于保存真正的密碼 int choice=1,select。//設(shè)置運(yùn)行窗口的屬性 string PassWord[2]。//設(shè)置DOS運(yùn)行窗口的標(biāo)題 system(mode con cols=80 lines=25 amp。}}//pragma onceincludeincludeincludeincludeinclude//用于控制運(yùn)行窗口屬性的必要頭文件includefstream//文件操作using namespace std。icount。Write_ElectricalAppliance)//用于將ElectricalAppliance商品信息保存到文件中{ Write_ElectricalAppliancecountendl。 } outfileendlendlendlendlendl。 outfile現(xiàn)存數(shù)量:number[i]setw(6)臺(tái)。icount。outfile)//將ElectricalAppliance類商品信息打印到文件中{ outfileendl現(xiàn)有家電類(ElectricalAppliance)商品庫存:endlendl。 cout endl。 cout現(xiàn)存數(shù)量:number[i]setw(6)臺(tái)。icount。 coutendl現(xiàn)有家電類商品庫存:endlendl。 Sale()。 ShowMe()。 cout\t\t*************************************endl。//用于新增物品 } coutendlendl\t\t*************************************endl。cincolor[count]。cinnumber[count]。 flag=0。cinnumber[count]。icount。cinname[count]。 coutendl請(qǐng)輸入要增加的家電的信息endlendl。 int flag=1。color[2]=紅色。 name[2]=冰箱。number[1]=36。color[0]=黑色。 name[0]=電視。i++) { Write_Foodname[i] number[i] SaveTime[i]endl。 for(int i=0。}void Food::Save(ostreamamp。 outfile保質(zhì)期:setw(3)SaveTime[i]天endl。i++) { outfile【i+1】食品名稱:setiosflags(ios::left)setw(15)name[i]。 for(int i=0。 }}void Food::Print_SuperMarket(ostreamamp。 cout保質(zhì)期:setw(3)SaveTime[i]天endl。i++) { cout 【i+1】食品名稱:setiosflags(ios::left)setw(15)name[i]。 for(int i=0。//調(diào)用基類Goods里的Sale()函數(shù)}void Food::ShowMe(){ coutendl *^__^*超市商品管理系統(tǒng)*^__^*【食品區(qū)】 endlendl。coutendl請(qǐng)輸入要出售的食品信息endlendl。}void Food::SaleGoods(){ system(cls)。cout\t\t O(∩_∩)O~ 添加商品成功!O(∩_∩)O~endl。count++。cout保質(zhì)期:。 }}if(flag){ cout商品數(shù)量:。 number[i]+=number[count]。i++){ if(name[i]==name[count])//判斷該物品是否已經(jīng)存在 { cout商品數(shù)量:。for(int i=0。cout商品名稱:。ShowMe()。}void Food::AddGoods()//增加食品{ system(cls)。number[5]=450。SaveTime[4]=20。 name[4]=西瓜。number[3]=50。SaveTime[2]=10。 name[2]=梨。number[1]=40。SaveTime[0]=15。 name[0]=蘋果。i++) { Write_DailyGoodsname[i] number[i]endl。 for(int i=0。}void DailyGoods::Save(ostreamamp。 outfile現(xiàn)存數(shù)量:number[i]個(gè)endl。icount。outfile)//將DailyGoods類商品信息打印到文件中{ outfileendl現(xiàn)有日常用品類商品庫存:endlendl。 cout endl。i++) { cout 【i+1】日常用品名稱:setiosflags(ios::left)setw(15)name[i]。 for(int i=0。//調(diào)用基類Goods里的Sale()函數(shù)}void DailyGoods::ShowMe(){ coutendl *^__^*超市商品管理系統(tǒng)【日常用品區(qū)】*^__^* endlendl。 coutendl請(qǐng)輸入要出售的日常用品信息endlendl。}void DailyGoods::SaleGoods(){ system(cls)。 cout\t\t O(∩_∩)O~ 添加商品成功!O(∩_∩)O~endl。 } } if(flag) count++。i++) { if(name[i]==name[count])//判斷該物品是否已經(jīng)存在 { number[i]+=number[count]。 for(int i=0。 cout商品數(shù)量:。 cout商品名稱:。 ShowMe()。}*/void DailyGoods::AddGoods()//增加日常用品{ system(cls)。i++){in[i][i]。for(int i=0。in,DailyGoods amp。}/******************對(duì)運(yùn)算符的重載,用于讀取文件中的信息(暫未用上)******************//*istream amp。 name[3]=水壺。 name[2]=臺(tái)燈。 name[1]=毛巾。 name[0]=杯子。 cout\t\t*************************************endl。 } } } if(flag==0) { coutendl\t\t*************************************endl。 cout\t\t O(∩_∩)O~ 出售成功!O(∩_∩)O~endl。 number[i]=goods_number。 cout\t\t*************************************endl。 coutendl\t\t*************************************endl。icount。cingoods_number。cingoods_name。 int goods_number。void Goods::Sale()//統(tǒng)一定義商品出售函數(shù)功能模塊{ int flag=0。 cerr \t\t∷∷∷∷
點(diǎn)擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1