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

正文內(nèi)容

用c實(shí)現(xiàn)水電煤氣管理系統(tǒng)(存儲(chǔ)版)

2025-05-08 01:03上一頁面

下一頁面
  

【正文】 l。}int mainMenu(){ coutendlendl。 cout endl。 cina。 break。 }}void Menu(){ coutendl。 coutendl。y39。 float usePower。 isread((char*)amp。i++) { Student s=stuListat(i)。amp。 } } void wjf() { cout未繳費(fèi)的學(xué)生名單:endl。endififndef TeaFile_classdefine TeaFile_classclass TeacherFile{ vectorTeacher *teaList。 if(() !=) { teaListpush_back(s)。 for(int i=0。i++) { Teacher t=teaListat(i)。iteaListsize()。 float freePower。 float g=SgasUnit*((useGasfreeGas)?(useGasfreeGas):0)。 }}。public : User(string i,string n, float w=0,float p=0,float g=0) { id=i。 } void setId(string i) { id=i。 } virtual float getMoney()=0。 我覺得一周的課程設(shè)計(jì)遠(yuǎn)遠(yuǎn)比我自己看兩周書的收獲多,實(shí)踐是檢驗(yàn)知識(shí)的最佳手段。 } virtual void display() { cout|setw(18)id| setw(8)name| setw(8)useWater| setw(8)usePower| setw(8)useGas| setw(8)getMoney()endl。 } string getId() { return id。 float useGas。 float g=TgasUnit* useGas。 } float getMoney() { float w=SwaterUnit*((useWaterfreeWater)?(useWaterfreeWater):0)。endififndef STUDENT_CLASSdefine STUDENT_CLASSincludeiostreamincludeiomanipincludestringincludeincludeusing namespace std。 !teaListempty()) { ofstream os(teaFileName,ios_base::out)。 } } } void display() { for(int i=0。 } return 0。 isread((char*)amp。 ()。 } ()。 } return 0。 } void display() { for(int i=0。 return 。 string name。y39。 cout ☆ ☆endl。 break。 return a。 do { cout 請(qǐng)選擇相應(yīng)的功能(04):endl。 coutendl。 usersetMoney(money)。 if(user==0) { cout資料庫中沒有該身份證號(hào)的用戶!endl。}void handed(){ cout請(qǐng)輸入要繳費(fèi)的人的身份證號(hào):。 cout請(qǐng)輸入他的用電量:。 if(user==0) user=(id)。 float power。 ()。 user=(id)。 cout|setw(18)身份證號(hào)| setw(8)姓名| setw(8)用水量| setw(8)用電量| setw(8)用煤氣量| setw(8)要繳的費(fèi)用endl。 int o。 cinname。 Teacher t(id,name)。 int o。const static float SpowerUnit=1。學(xué)生免費(fèi)使用的電量Privatefloat freeGas。|Teacher類,其中有計(jì)算應(yīng)該繳的費(fèi)用,Student類比Teacher類多了免費(fèi)。課程設(shè)計(jì)報(bào)告課程設(shè)計(jì)題目:水電煤氣管理系統(tǒng) 學(xué)生姓名: 專 業(yè): 網(wǎng)絡(luò)工程班 級(jí): 10211303指導(dǎo)教師: 姜林 2011年 11 月 25 日 東華理工大學(xué)課程設(shè)計(jì)評(píng)分表學(xué)生姓名: 班級(jí): 學(xué)號(hào):課程設(shè)計(jì)題目:水電煤氣管理系統(tǒng)項(xiàng)目?jī)?nèi)容滿分實(shí) 評(píng)選題能結(jié)合所學(xué)課程知識(shí)、有一定的能力訓(xùn)練。,用于初始化身份證號(hào)碼、姓名、用水電、煤氣量,又定義了繳費(fèi)函數(shù)setMonery(),用在有人繳費(fèi)的函數(shù)體中,從鍵盤輸入繳的費(fèi)用,一開始我們?cè)趕etMoney(),中沒有對(duì)繳的費(fèi)用進(jìn)行累加,在查詢信息時(shí)現(xiàn)實(shí)的應(yīng)繳費(fèi)用不正確,經(jīng)過我們的努力,檢查出錯(cuò)誤并加以改正,讓程序更加完善。學(xué)生免費(fèi)使用的水量Privatefloat freePower。//學(xué)生const static float SwaterUnit=1。 cout請(qǐng)選擇你要進(jìn)行的操作:endl。 cinname。 cout請(qǐng)輸入新學(xué)生的姓名:。 cout請(qǐng)輸入你要進(jìn)行的操作:。 } else if(o==2) { cout該用戶的信息是:endl。 cinid。 } else if(o==4) { ()。 float water。 user=(id)。 cinwater。 } else return 。 if(user==0) user=(id)。 cinmoney。 cout
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1