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

正文內(nèi)容

c語言程序設(shè)計課程設(shè)計-水電煤氣管理系統(tǒng)(留存版)

2025-09-21 13:50上一頁面

下一頁面
  

【正文】 __ _ __________ 教師簽名:__________ _______________ 目 錄一.課程設(shè)計目的和要求…………………………………… 2二.課題分析 …………………………………… 2三.設(shè)計…………………………………… 231. 設(shè)計思想 四.主程序……………………………………319五.結(jié)果顯示及分析…………………………………1921六.感想、收獲及體會……………………………………21 七.參考文獻(xiàn)……………………………………22附錄……………………………………221. 課程設(shè)計目的和要求 問題描述:設(shè)計一個水電管理信息系統(tǒng),能夠?qū)Ω咝5乃娰M(fèi)用進(jìn)行管理,包括了登記費(fèi)用,查詢費(fèi)用,以及住戶信息管理等。使得程序更加簡潔明了。 asetw(8)left()。 power=xpower。} double Stu::SGetG() //計算煤氣費(fèi){if(gas10) gas_rate=0。 //學(xué)號刪除 void check( )。fstudent[i].gas。 else {cout你應(yīng)該交student[i].Stotal()錢endl。 xuesheng()。 cinch。 } } if(!fl) cout沒有這個學(xué)生endl。 coutendlstudent[0].name。}void arrayofStu::display(){ int i。string num。 cout請輸入要查找的姓名endl。i++) if(num==student[i].number) { fl=1。 cout\t\t\t\t 2,按姓名刪除endl。 cout\t\t\t\t****************endl。 cout\t\t\t\t歡迎使用學(xué)生用戶管理系統(tǒng)endlendl。 //注冊 case 2: amend()。 cout\t\t\t\t0,回上一層 endl。while(1){ cout請輸入您的選擇endl。operator (ostream amp。 //電費(fèi)計算 double TGetG()。}double Teacher::Ttotal() //計算應(yīng)該付的的錢{total=TGetW()+TGetC()+TGetG()。 Teacher *teacher。cinna。 cout你實際交的錢是:endl。cout請輸入教工的用電量endl。}if(fl){for(j=i。break。icount2。 cinchoice。 cout 0,返回上一層endl。 //查看交費(fèi)情況 case 6: save()。 switch(choice) { case 1:( )。2000年6月第1版[10]嚴(yán)蔚敏等 《數(shù)據(jù)結(jié)構(gòu)(c語言版)》 北京:清華大學(xué)出版社,1997年4月第1版。 cout 0,退出系統(tǒng)endlendl。 //繳納費(fèi)用 case 4: check()。 cout 3,繳納費(fèi)用endl。 cout 2,刪除教工endl。 if(count22==count2) cout所有的教工均以交錢endl。 cinna。for(i=0。cout請輸入教工的姓名endl。Y39。}void arrayofTeacher::jiaofei() //用戶交費(fèi){ char ch。 //交水電煤氣費(fèi) // void display()。 }double Teacher::TGetC() //計算電費(fèi) { circuit=*power。 coutendl。name=xname。 cout 1,按姓名查找 endl。 }}void arrayofStu::amend() //修改用戶菜單{ int choice。) { cout請輸入您的選擇endl。 //輸入姓名計費(fèi) case 0: xuesheng()。 //返回學(xué)生管理主菜單 case 0: amend()。}void arrayofStu::delet() //刪除學(xué)生菜單{ int choice。cout請輸入要查找的學(xué)號endl。}else cout沒有這個學(xué)生endl。i++) if(!student[i].flag) coutstudent[i]。j++) student[j]=student[j+1]。count1++。} cout交費(fèi)成功endl。i++) if(num==student[i].number) { if(student[i].flag) {fl=1。 cout補(bǔ)交:。 for(int i=0。while(()) // !(){fstudent[i].number。 //修改用戶菜單 void add( )。 return water_rate。 int flag。 asetw(8)left。在本程序中涉及用戶的選擇,用戶要根據(jù)自己的實際需要選擇不同的功能,由于選擇的多樣性,程序中必須要有switch結(jié)構(gòu)控制各個功能的選擇,如果需要多次進(jìn)行操作,則要在switch結(jié)構(gòu)的外部,通過循環(huán)來實現(xiàn)。在實現(xiàn)的時候考慮繼承和多態(tài)技術(shù)的合理使用。class Stu{public: Stu(double xwater=0,double xpower=0,double xgas=0,string xnum=a,string xna=a)。 coutendl。}void Stu::operator =(Stu S) //賦值運(yùn)算符重載{ name=。}class arrayofStu //學(xué)生類計算{ public: arrayofStu(int sz=1) {size=sz。 //輸入學(xué)號交費(fèi) void display()。}void arrayofStu::naj( ) //輸入姓名交費(fèi) { char ch。||ch==39。double money,money2。) {student[i].flag=1。cinstudent[count1].number。cinna。icount1。i++)if(num==student[i].number) {fl=1。break。}void arrayofStu::save(){ ofstream f()。 cinchoice。 cout\t\t\t\t****************endl。 cout\t\t\t\t*4,查詢費(fèi)用*endl。 break。 case 2: delet()。 break。 asetw(10)。}。 } void regist()。fteacher[i].water。i++) if(na==teacher[i].name) {fl=1。 cinmoney2。cout\t\t\t教工已被成功增加!endl。count2。 if(count22==0)cout暫時還無教工交錢endl。icount2。 case 0: jiaogong()。 cinchoice。 arrayofTeacher teacher(200)。 } if(choice==0) break。同時還讓自己平時不怎么注意的問題得到了自己足夠的關(guān)注,為以后寫程序奠定下了堅實的基礎(chǔ),讓自己對這門課的課程有了更深刻的認(rèn)識。int choice。 break。 } if(choice==0) break。 ()。 cout姓名 用水量 用電量 用煤氣量 水費(fèi) 電費(fèi) 煤氣費(fèi) 總額 是否交費(fèi)endl。 }Else cout沒有這個教工endl。int fl=0。count22++。 break。fteacher[i].gas。 //教工主菜單 void amend( )。water=。 asetw(10)()。 break。 case 0: xuesheng()。 break。 cout\t\t\t\t*6,保存信息到文件*endl。 cinchoice。 break。for(int i=0。 coutstudent[i]endl。}if(fl){for(j=i。 } if(count11==count1) cout所有學(xué)生均以交費(fèi)endl。icount1。cinstudent[count1].water。 cinmoney。 cout請輸入學(xué)生學(xué)號:endl。) { student[i].flag=1。 cout\t\t\t歡迎使用姓名交費(fèi)功能endl。 private: int size。} //構(gòu)造函數(shù) ~arrayofStu() { delete [] student。 water=。 } double SGetW()。 //賦值運(yùn)算符重載
點擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1