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

正文內(nèi)容

用c實現(xiàn)水電煤氣管理系統(tǒng)-wenkub

2023-04-23 01:03:56 本頁面
 

【正文】 師簽名: 年 月 日一. 問題描述:設(shè)計一個水電管理信息系統(tǒng),能夠?qū)Ω咝5乃娰M用進行管理,包括了登記費用,查詢費用,以及住戶信息管理等。課程設(shè)計報告課程設(shè)計題目:水電煤氣管理系統(tǒng) 學生姓名: 專 業(yè): 網(wǎng)絡工程班 級: 10211303指導教師: 姜林 2011年 11 月 25 日 東華理工大學課程設(shè)計評分表學生姓名: 班級: 學號:課程設(shè)計題目:水電煤氣管理系統(tǒng)項目內(nèi)容滿分實 評選題能結(jié)合所學課程知識、有一定的能力訓練。在設(shè)計時要考慮到學生和教工在用水電時的不同,學生可以免費使用一定額度的水電,超過這個額度的隨便以后必須自費使用,且自費部分水電費的價格標準要高于教工的收費標準(主要是節(jié)約資源)。|Teacher類,其中有計算應該繳的費用,Student類比Teacher類多了免費。s)將S添加到文件中Publicvoid display()依次顯示所有的學生的信息PublicStudent*gerStudent(string id)得到學號為id的學生的對象指針Public~StuFile()析構(gòu)函數(shù),釋放資源,并把數(shù)組中的信息存進文件Publicvoid wjf()未繳費的學生的名單PrivatevectorStudent*stuList。學生免費使用的電量Privatefloat freeGas。應繳費用(四)UML圖:StuFile+id:string+name:string+useWater:float+usePower:float+useGas:float+money:float+add():void+display():void+wjf():voidStudentfreeWater:floatfreePower:floatfreeGas:float+display():void+getMoney():voidUser+i:string+n:string+w:float+p:float+g:float+getId():string+getName():string+setId(string i) :string+setName(string n) :string+setWater(float w) :float+setPower(float p) :float+setGas(float g) :float+getWater():float 三. 程序代碼://收費標準ifndef Constantdefine Constant//教師const static float TwaterUnit=1。const static float SpowerUnit=1。endifincludeiostreamincludeiomanipincludestringincludevectorincludeincludeincludeusing namespace std。 int o。 cout請輸入新教工的身份證號:。 Teacher t(id,name)。 string name。 cinname。 } else return 。 int o。 if(o==1) { cout該用戶的信息是:endl。 cout|setw(18)身份證號| setw(8)姓名| setw(8)用水量| setw(8)用電量| setw(8)用煤氣量| setw(8)要繳的費用endl。 TeacherFile tf。 user=(id)。 } cout該用戶的信息為:endl。 ()。 int o。 float power。 TeacherFile tf。 if(user==0) user=(id)。 cout|setw(18)身份證號| setw(8)姓名| setw(8)用水量| setw(8)用電量| setw(8)用煤氣量| setw(8)要繳的費用endl。 cout請輸入他的用電量:。 usersetWater(water)。}void handed(){ cout請輸入要繳費的人的身份證號:。 StuFile sf。 if(user==0) { cout資料庫中沒有該身份證號的用戶!endl。 userdisplay()。 usersetMoney(money)。 cout ☆ ☆endl。 coutendl。 cout endl。 do { cout 請選擇相應的功能(04):endl。 if(a0||a4) { coutendlendl。 return a。 break。 break。 cout ☆ ☆endl。 cout ☆ ☆endl。 system(cls)。y39。 cout是否繼續(xù)使用該系統(tǒng)(y/n)endl。 string name。 float money。 return 。 if(() !=) { stuListpush_back(s)。 } void display() { for(int i=0。 } } Student *getStudent(string id) { for(int i=0。 } return 0。 for(
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1