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

正文內(nèi)容

商品銷售統(tǒng)計(jì)--c++課程設(shè)計(jì)-文庫(kù)吧

2025-06-20 17:50 本頁(yè)面


【正文】 n1].price_per_unit=price。 break。 case 4: cout 請(qǐng)輸入 n 號(hào) 商品goods2[n1].name的數(shù)量: __。 // !! int num。 cinamount。 goods2[n1].amount=amount。 break。 default: coutCaution:對(duì)丌起,輸入有誤,請(qǐng)從新輸入! 。 break。 } 26 }while(choice2!=1amp。amp。choice2!=2amp。amp。choice2!=3amp。amp。choice2!=4)。 } }while(p==n||p==N)。 cout ________________________________________________________________________ endl。 cout__繼續(xù)修改商品信息( y/n)? __。 // string q。 cinq。 coutendl。 }while(q==y||q==Y)。 cout__ 商 品 信 息 修 改 完 成 ! 。 cout ________________________________________________________________________ endl。 return。 } void sort(GOODS array[],int size) //排序函數(shù),使得信息為空的商品類數(shù)組元素沉底,丌為空的排在前面(被 刪除商品信息函數(shù) 調(diào)用) { int i,j。 GOODS temp。 for(i=0。isize1。i++) { for(j=0。jsize1i。j++) { if(array[j].name==0amp。amp。array[j+1].name!=0) { temp=array[j]。 array[j]=array[j+1]。 27 array[j+1]=temp。 } } } return。 } void Message_delete(GOODS goods3[],int size) //底層函數(shù):刪除商品信息函數(shù)(從屬亍商品信息管理系統(tǒng)) { if(goods3[0].name==0) { coutCaution:對(duì)丌起,當(dāng)前無(wú)商品信息,請(qǐng)返回更新?。?y/n) __。 string c。 cinc。 cout ________________________________________________________________________ endl。 coutendl。 if(c==y||c==Y) { Goods_Message_Manage(goods3,size)。 WORK(goods3,size)。 } else { cout 謝謝使用,祝您愉快!再見! endl。 exit(0)。 } } string p,q。 28 int n。 string unit。 //double price。 do { do { cout 商品信息列表 endlendl。 cout\t 商品編號(hào) \t 商品名稱 \t 商品單價(jià) \t 商品余量endlendl。 int i,m=0。 int s=size。 for(i=0。is。i++) { if(goods3[i].name!=0)m++。 else if(goods3[i].name==0)s=m。 } for(i=0。im。i++) { cout\ti+1\t\tgoods3[i].name\tgoods3[i].price_per_unit 元/goods3[i].unit\tgoods3[i].amountgoods3[i].unitendlendl。 } cout ________________________________________________________________________ endl。 cout請(qǐng)輸入您想刪除信息的商品編號(hào): __。 // int n。 cinn。 coutendl。 29 cout__ 您 想 刪 除 信 息 的 商 品 為 :n.goods3[n1].name( y/n) __。 // string p。 cinp。 coutendl。 if(p==y||p==Y) { goods3[n1].name=0。 goods3[n1].unit=0。 goods3[n1].price_per_unit=。 goods3[n1].amount=0。 } cout ________________________________________________________________________ endl。 }while(p==n||p==N)。 cout__繼續(xù)刪除商品信息( y/n)? __。 // string q。 cinq。 coutendl。 }while(q==y||q==Y)。 cout__ 商 品 信 息 刪 除 完 成 ! 。 cout ________________________________________________________________________ endl。 sort(goods3,size)。 return。 } void Goods_Message_Manage(GOODS Goods1[],int size) //中層函數(shù): M.商品信息管理系統(tǒng)(從屬亍商品銷售統(tǒng)計(jì)工程) 30 { int choice1。 do { cout ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ endl。 cout ★ ★ endl。 cout ★ 商品信 息管理系統(tǒng) ★ endl。 cout ★ ★ endl。 cout ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ endlendl。 cout 請(qǐng) 選 擇 您 要 執(zhí) 行 的 操 作 endlendl。 cout 1. 錄入新商 品信息 endl。 cout 2. 修改 商品 信 息 endl。 cout 3. 刪除 商品 信 息 endl。 cout 4. 返回 endl。 cout 0. 退出 。 cout _____________________________________________________________ endl。 cout請(qǐng)輸入您的選擇:( 04) __。 cinchoice1。 coutendl。 switch(choice1) 31 { case 1: input_gds_mesg(Goods1,size)。 break。 case 2: Message_modify(Goods1,size)。 break。 case 3: Message_delete(Goods1,size)。 break。 case 4: WORK(Goods1,size)。 break。 case 0: cout 謝謝使用,祝您愉快!再見! endl。 exit(0)。 break。 default: cout 對(duì) 丌 起 , 您 的 輸 入 有 誤 , 請(qǐng) 重 新 進(jìn) 行 選 擇 !endlendl。 break。 } }while(choice1!=0amp。amp。choice1!=1amp。amp。choice1!=2amp。amp。choice1!=3amp。amp。choice1!=4)。 return。 } void Goods_Sale(GOODS Goods2[],int size) //中層函數(shù): (從屬亍商品銷售統(tǒng)計(jì)工程) { if(Goods2[0].name==0) 32 { coutCaution:對(duì)丌起,當(dāng)前無(wú)商品信息,請(qǐng)返回更新!( y/n) __。 string c。 cinc。 cout ________________________________________________________________________ endl。 coutendl。 if(c==y||c==Y) { Goods_Message_Manage(Goods2,size)。 WORK(Goods2,size)。 } else { cout 謝謝使用,祝您愉快!再見! endl。 exit(0)。 } } string p,q。 int num[1000],amount[1000]。 //num[] 存 放 所 要 購(gòu) 買 商 品 的 編 號(hào) ,amount[]存放購(gòu)買的每種商品數(shù)量 int j=0,f=0,r=0。 string unit。 double money=。 do { do { cout ________________________________________________________________________ endl。 33 cout 商品信息列表 endlendl。 cout\t 商品編號(hào) \t 商品名稱 \t 商品單價(jià) \t 商品余量endlendl。 int i,m=0。
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1