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

正文內(nèi)容

商品管理系統(tǒng)項(xiàng)目實(shí)訓(xùn)報(bào)告-在線瀏覽

2024-12-10 09:52本頁(yè)面
  

【正文】 double pricein。//售價(jià) double profit。//商品總量 double sale_count。//售出商品利潤(rùn) Goods * next。//輸出數(shù)據(jù) }。 ~Supermarket()。//商品種類 void Add()。 //刪除商品 void Search()。 //修改商品信息 void Sale()。 //遍歷商品信息 void Save()。 //讀取文檔內(nèi) 信息 private: ofstream out。 Goods *phead。 }。 struct Goods //定義商品結(jié)構(gòu)體 { public: Goods()。 string num。//商品名 double pricein。//售價(jià) double profit。//商品總量 double sale_count。//售出商品利潤(rùn) Goods * next。//輸出數(shù)據(jù) }。 thisname = name。 thispriceout = priceout。 thisprofit = thispriceout thispricein。 thissale_profit = 0。 cout \t\t商品名稱 : thisname endl。 cout \t\t 商品售價(jià) : thispriceout (元 ) endl。 cout \t\t單個(gè)商品利潤(rùn) : thisprofit (元 ) endl。 cout \t\t商品獲利 : thissale_profit (元 ) endl。 } // 文件 ifndef _SUPERSMARKET_H define _SUPERSMARKET_H include class Supermarket:public Goods { public: Supermarket()。 static int n。 //增加商品 void Delete()。 //查找單個(gè)商品 void Modify()。 //出售商品 void Query()。 //商品排序 void Swap(Goods *p1, Goods *p2)。 //保存商品內(nèi)容 void Load()。 ifstream in。 Goods* SearchNum(string num)。 endif // 文件 include include int Supermarket::n = 0。 pheadnext = new Goods。 Load()。 p = phead。p!= NULL。 delete p。 } } delete p, phead。 p = phead。 p = pnext。 return p。 cout \t 請(qǐng)?zhí)砑由唐沸畔? endl。 } int cou = 0。 char flag = false。 double pricein, priceout, count。 while(!flag) { cout \t 商品條形碼 : 。 Goods *tmp。 while(tmp) { if(tmpnum == num) { cout \t 條形碼重復(fù), 請(qǐng)重新輸入 ! endl。 if(cou == 3) { cout \t 超過(guò)三次! endl。 _getch()。 } break。 } if(!tmp) flag = true。 cinname。 cinpricein。 cinpriceout。 cincount。 tempnext = NULL。 n++。 p = phead。 } tempnext = pnext。 n++。 cout \t*** 添加成功 ! *** endl。 cout \t***********************\n endl。 _getch()。 } void Supermarket::Search() //查找商品 { if(phead == NULL) { phead = NULL。 cout \t 請(qǐng)?zhí)砑由唐沸畔? endl。 _getch()。 } string num。 p = NULL。 cin num。 if(p) { cout \n\t*********************** endl。 cout \t***********************\n endl。 pdisplay()。 return 。 cout \t 查找失?。? endl。 endl。 return 。 cout \t 請(qǐng)?zhí)砑由唐沸畔? endl。 endl。 return 。 char ch。 cout \t 請(qǐng)輸入要?jiǎng)h除的商品條形碼 : 。 former = phead。 if(formernum == num) { cout \t 找到要?jiǎng)h除的商品信息 endl。 cout \t 是否要?jiǎng)h除該信息【 Y/N】【 y/n】 : 。 if(ch == 39。 || ch == 39。) { phead = formernext。 n。 cout \t*** 刪除成功 ! *** endl。 cout 按任意鍵繼續(xù)。 endl。 return 。 cout \t*** 刪除失敗 ! *** endl。 cout 按任意鍵 繼續(xù)。 endl。 return 。 pdisplay()。 cin ch。y39。Y39。 delete p。 cout \n\t*********************** endl。 cout \t***********************\n endl。 _getch()。 } else { cout \n\t*********************** endl。 cout \t***********************\n endl。 _getch()。 } } former = p。 } if(!p) { cout \t 不存在該條形碼的商品! endl。 cout 按任意鍵繼續(xù)。 endl。 return 。 cout \t 請(qǐng)?zhí)砑由唐沸畔? endl。 _getch()。 } string num。 p = NULL。 cin num。 if(p) { cout \t 查找成功 ! endl。 cout \t** 請(qǐng)輸入該條形碼商品的新信息 ** endl。 cout \t 商品進(jìn)價(jià) : 。 cout \t 商品售價(jià) : 。 cout \t 商品庫(kù)存數(shù)量 : 。 cout \n\t*********************** endl。 cout \t***********************\n endl。 _getch()。 cout \t*** 不存在該條形碼的商品 ! *** endl。 cout \t*********************************\n endl。 endl。 } } void Supermarket::Query() //顯示商品 { Goods *p。 cout \t*** 暫無(wú)商品信息 ! *** endl。 cout \t*************************\n endl。 _getch()。 } cout *************************** endl。 cout *************************** endl。 p = phead。 p = pnext。 cout \t*** 顯示成功 ! *** endl。 cout 按任意鍵繼續(xù)。 endl。 } void Supermarket::Sale() //出售商品 { string num。 Goods *p。 cout \t 出售商品的條形碼 :。 cout \t 出售商品數(shù)量 :。 p = SearchNum(num)。 cout \t 該商品倉(cāng)庫(kù)余量 : pcount endl。 cout \t 已出售數(shù)量 : psale_count。 cout \t 商品剩余 : pcount endl。 cout \t 盈利 : psale_profit 元 endl。 cout \n\t*********************** endl。 cout \t*******
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1