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

正文內(nèi)容

用c實(shí)現(xiàn)水電煤氣管理系統(tǒng)(完整版)

  

【正文】 +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 三. 程序代碼://收費(fèi)標(biāo)準(zhǔn)ifndef Constantdefine Constant//教師const static float TwaterUnit=1。endifincludeiostreamincludeiomanipincludestringincludevectorincludeincludeincludeusing namespace std。 cout請(qǐng)輸入新教工的身份證號(hào):。 string name。 } else return 。 if(o==1) { cout該用戶的信息是:endl。 TeacherFile tf。 } cout該用戶的信息為:endl。 int o。 TeacherFile tf。 cout|setw(18)身份證號(hào)| setw(8)姓名| setw(8)用水量| setw(8)用電量| setw(8)用煤氣量| setw(8)要繳的費(fèi)用endl。 usersetWater(water)。 StuFile sf。 userdisplay()。 cout ☆ ☆endl。 cout endl。 if(a0||a4) { coutendlendl。 break。 cout ☆ ☆endl。 system(cls)。 cout是否繼續(xù)使用該系統(tǒng)(y/n)endl。 float money。 if(() !=) { stuListpush_back(s)。 } } Student *getStudent(string id) { for(int i=0。 for(int i=0。istuListsize()。 ifstream*is=new ifstream(teaFileName,ios_base::in)。 } Teacher *getTeacher(string id) { for(int i=0。i++) { Teacher t=teaListat(i)。 } } void add(Teacher amp。teaListat(i),sizeof(Teacher))。public : Student():User(,0,0,0) { freeWater=1。 }}。ifndef USER_CLASSdefine USER_CLASSclass User{protected : string id。 useWater=w。 } void setWater(float w) { useWater=w。endif四. 測(cè)試結(jié)果:界面一:歡迎界面界面二:程序功能表界面三:新建用戶信界面四:信息查詢界面五:信息的錄入界面六:繳費(fèi)五.實(shí)驗(yàn)心得: 課程設(shè)計(jì)的過(guò)程中遇到了很多麻煩,雖然我早有心理準(zhǔn)備,但還是令我傷透了腦筋,只怪自己平時(shí)看書太少,其實(shí)有很多東西在書上都可以找到答案的,可是還是有一些問(wèn)題我實(shí)在沒有辦法解決,最終通過(guò)老師和同學(xué)們的努力解決了一個(gè)又一個(gè)的問(wèn)題。設(shè)計(jì)的過(guò)程是困難的,因?yàn)橐郧皼]有類似的經(jīng)驗(yàn),剛開始的幾天沒有太多進(jìn)展,不過(guò)我們沒有灰心,經(jīng)過(guò)認(rèn)真思考以及老師幫助,最終我有了很好的設(shè)計(jì)方法。 } void setGas(float g) { useGas=g。 useGas=g。 float useWater。 } float getMoney() { float w=TwaterUnit* useWater。 freeGas=3。 delete teaList。 } ~TeacherFile() { if(teaList !=NULL amp。 cout|setw(18)身份證號(hào)| setw(8)姓名| setw(8)用水量| setw(8)用電量| setw(8)用煤氣量| setw(8)要繳的費(fèi)用endl。i++) { if(teaListat(i).getId()==id) return amp。 return 。 if(()0) { cout該學(xué)生的信息是:endl。i++) { if(stuListat(i).getId() !=) ((char*)amp。i++) { if(stuListat(i).getId()==id) return amp。 } void add(Student amp。 ifstream *is=new ifstream(StuFileName,ios_base::in)。 }}//StuFile類,對(duì)學(xué)生信
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1