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

正文內(nèi)容

水電費管理系統(tǒng)課程設(shè)計(編輯修改稿)

2025-05-09 07:29 本頁面
 

【文章內(nèi)容簡介】 se 1: { cout請輸入編號:。 int num。 cinnum。 for(int i=0。itop。i++) { if(num==Stu[i].num) { cout是否確認刪除? 是 否 endl。 int choice。 cinchoice。 switch(choice) { case 1: { for(int j=i。jtop1。j++) Stu[j]=Stu[j+1]。 cout刪除成功!endl。 top。 }。break。 case 2: return。 default:cout無此項,失??!endl。 break。 }return。 } } cout無此人!endl。 }。 break。 case 2: { cout請輸入姓名:。 string name。 cinname。 for(int i=0。itop。i++) { if(name==Stu[i].name) { cout是否確認刪除? 是 否 endl。 int choice。 cinchoice。 switch(choice) { case 1: { for(int j=i。jtop1。j++) Stu[j]=Stu[j+1]。 cout刪除成功!endl。 top。 }。break。 case 2: return。 default:cout無此項,失?。ndl。break。 }return。 } } cout無此人!endl。 }。break。 default:cout沒有此項,失?。篹ndl。break。 }}void Stu_Manage::Total(){ cout1 學(xué)生所用水電量的總量 2 學(xué)生總的水電費 endl。 int choice。 cout請輸入你的選擇endl。 cinchoice。 switch(choice) { case 1: { double zwater=, zpower=。 for(int i=0。 itop。 i++) { zwater+=Stu[i].water。 zpower+=Stu[i].power。 } cout學(xué)生的總用水量為zwaterendl。 cout學(xué)生的總用電量為zpowerendl。 }break。 case 2: { double zwatermoney=, zpowermoney=。 for(int i=0。 itop。 i++) { zpowermoney+=Stu[i].powermoney。 zwatermoney+=Stu[i].watermoney。 } cout學(xué)生的總水費為zwatermoneyendl。 cout學(xué)生的總電費為zpowermoneyendl。 }break。 default:cout輸入錯誤。請重新輸入endl。break。 }}class Tea_Manage{ Teacher Tea[TMAX]。 int top。public: Tea_Manage(){top=0。} void Add()。 void Show()。 void Search()。 void Edit()。 void Delete()。 void Total()。}。void Tea_Manage::Add(){ if(top=TMAX) { cout用戶已滿endl。 return。 } Teacher t。 cout輸入新添加的人員的信息endl。 ()。 for(int i=0。itop。i++) if (()==Tea[i].GetNum()) { cout該編號的人員已存在endl。 return。 } Tea[top]=t。 top=top+1。 cout添加成功!endl。}void Tea_Manage::Show(){ if(top==0) { cout無數(shù)據(jù)!endl。 return。 } cout編號 姓名 性別 年齡 部門 用水量 用電量 水費 電費 endl。 for(int i=0。itop。i++) Tea[i].Output()。}void Tea_Manage::Search(){ if(top==0) { cout當(dāng)前系統(tǒng)中沒有存儲記錄endl。 return。 } int choice。 cout請選擇查找方式: endl。 cinchoice。 switch(choice) { case 1: { cout請輸入要查找的姓名endl。 string name。 cinname。 cout 編號 姓名 性別 年齡 部門 用水量 用電量 水費 電費 endl。 for(int i=0。itop。i++) { if(Tea[i].GetName()==name) { Tea[i].Output()。 } } return。 cout查無此人!endl。 }break。 case 2: { cout請輸入要查找的水量:endl。 double water。 cinwater。 cout編號 姓名 性別 年
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1