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

正文內容

c語言程序設計課程設計-水電煤氣管理系統(tǒng)(編輯修改稿)

2024-09-03 13:50 本頁面
 

【文章內容簡介】 f學號 姓名 用水量 用電量 用煤氣量 水費 電費 煤氣費 總額 是否交費endl。for(int i=0。icount1。i++) fstudent[i]endl。 ()。 cout恭喜你,文件已成功保存endl。}void arrayofStu::delet() //刪除學生菜單{ int choice。 cout\t\t\t\t**************endl。 cout\t\t\t\t 刪除信息endl。 cout\t\t\t\t 1,按學號刪除endl。 cout\t\t\t\t 2,按姓名刪除endl。 cout\t\t\t\t 3,返回主菜單endl。 cout\t\t\t\t 0,返回上一層endl。 cout\t\t\t\t**************endl。 while(1) { cout請輸入你的選擇endl。 cinchoice。 switch(choice) { case 1: numd()。 break。 //學號刪除 case 2: nad()。 break。 //姓名刪除 case 3: xuesheng()。 break。 //返回學生管理主菜單 case 0: amend()。 break。 //返回上一層 } if(choice==0) break。 }}void arrayofStu::jiaofei() //學生繳費菜單{ int choice。 cout\t\t\t\t****************endl。 cout\t\t\t\t*學生繳費*endl。 cout\t\t\t\t*1,輸入學號交費*endl。 cout\t\t\t\t*2,輸入姓名交費*endl。 cout\t\t\t\t*0, 返回上一層 *endl。 cout\t\t\t\t****************endl。 while(1) { cout請輸入你的選擇endl。 cinchoice。 switch(choice) { case 1: numj()。 break。 //輸入學號計費 case 2: naj()。 break。 //輸入姓名計費 case 0: xuesheng()。 break。 //返回上一層 } if(choice==0) break。 }}void arrayofStu::xuesheng() //學生用戶主菜單{ int choice。 cout\t\t\t\t歡迎使用學生用戶管理系統(tǒng)endlendl。 cout********************************endl。 cout\t\t\t\t*1,注冊學生*endl。 cout\t\t\t\t*2,修改用戶*endl。 cout\t\t\t\t*3,繳納費用*endl。 cout\t\t\t\t*4,查詢費用*endl。 cout\t\t\t\t*5,查看交費情況*endl。 cout\t\t\t\t*6,保存信息到文件*endl。 cout\t\t\t\t*0,返回上一層*endl。 cout********************************endl。 cout友情提示:第一次使用時,要進行注冊!endlendl。for(。) { cout請輸入您的選擇endl。 cinchoice。 switch(choice) { case 1: regist()。 break。 //注冊 case 2: amend()。 break。 //修改 case 3: jiaofei()。 break。 //繳納費用 case 4: check()。 break。 case 5: display()。 break。 case 6: save()。 break。 case 0: break。 } if(choice==0) break。 }}void arrayofStu::amend() //修改用戶菜單{ int choice。 cout\t\t\t\t修改學生信息endlendl。 cout\t\t\t\t1,增加學生 endl。 cout\t\t\t\t2,刪除學生 endl。 cout\t\t\t\t0,回上一層 endl。 while(1) { cout請輸入你的選擇endl。 cinchoice。 switch(choice) {case 1: add()。 break。 case 2: delet()。 break。 case 0: xuesheng()。 break。 } if(choice==0) break。 }}void arrayofStu::check() //查詢菜單{ int choice。 cout\t\t 查詢學生信息endlendl。 cout 1,按姓名查找 endl。 cout 2,按學號查找 endl。 cout 0,返回上一層 endl。 cout=============================================endl。while(1){ cout請輸入您的選擇endl。 cinchoice。 switch(choice) { case 1: nacheck()。 break。 //輸入姓名查找 case 2: numcheck()。 break。 //輸入學號查找 case 0:xuesheng()。 break。//如果是break時分析 } if(choice==0)break。}}class Teacher //教師 {public: Teacher( double xwater=0,double xpower=0,double xgas=0,string xname=a) {water=xwater。power=xpower。gas=xgas。name=xname。flag=0。} void operator =(Teacher S)。 //賦值運算符重載 friend ostream amp。operator (ostream amp。 a,Teacher amp。S) //插入運算符重載{ asetw(6)left。 asetw(6)left。 asetw(10)。 asetw(10)。 asetw(10)()。 asetw(10)()。 asetw(10)()。 asetw(10)()。 if() a已交。 else a未交。 coutendl。 return a。 } double TGetW()。 //水費計算 double TGetC()。 //電費計算 double TGetG()。 //煤氣費計算 double Ttotal()。 //計算總的錢 string name。 double water,power,gas,water_rate,circuit,gas_rate,total。 int flag。}。void Teacher::operator =(Teacher S) //賦值運算符重載{name=。water=。power=。gas=。}double Teacher::TGetW() //計算水費 { water_rate=*water。 return water_rate。 }double Teacher::TGetC() //計算電費 { circuit=*power。 return circuit。 }double Teacher::TGetG() //計算煤氣費{gas_rate=*gas。return gas_rate。}double Teacher::Ttotal() //計算應該付的的錢{total=TGetW()+TGetC()+TGetG()。return total。}class arrayofTeacher //老師類數(shù)組計算{ public: arrayofTeacher( int sz=1) { size=sz。teacher=new Teacher[size]。} ~arrayofTeacher() {delete [] teacher 。 } void regist()。 //注冊教工 void jiaogong()。 //教工主菜單 void amend( )。 //修改用戶菜單 void add()。 //增加用戶 void delet()。 // 刪除用戶 void check()。 //查詢是否交費 void jiaofei()。 //交水電煤氣費 // void display()。 //展示所有的用戶 void di
點擊復制文檔內容
物理相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1