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

正文內(nèi)容

c語言程序設(shè)計課程設(shè)計-水電煤氣管理系統(tǒng)-在線瀏覽

2025-07-25 08:40本頁面
  

【正文】 oneystudent[i].Stotal()錢endl。 cout補交:。} cout交費成功endl。 xuesheng()。 } } if(!fl) cout沒有這個學(xué)生endl。 string num。char ch。 cinnum。 for(int i=0。i++) if(num==student[i].number) { if(student[i].flag) {fl=1。} else { cout你應(yīng)該交student[i].Stotal()錢endl。 cinch。Y39。y39。 cout你實際交的錢是:endl。 if(moneystudent[i].Stotal()) cout找零moneystudent[i].Stotal()錢endl。 cout補交:。} cout交費成功endl。 xuesheng()。 } } if(!fl) cout沒有這個學(xué)生endl。cout請輸入學(xué)生的姓名:endl。cout請輸入學(xué)生的學(xué)號:endl。cout請輸入學(xué)生的用水量:endl。cout請輸入學(xué)生的用電量:endl。cout請輸入學(xué)生的用煤氣量:endl。count1++。}void arrayofStu::nad( ) //按姓名刪除 { cout\t\t\t歡迎使用姓名刪除學(xué)生功能endl。 coutendlstudent[0].name。 int i,j。cout請輸入要刪除學(xué)生的姓名endl。for(i=0。i++)if(na==student[i].name) {fl=1。}if(fl){ for(j=i。j++) student[j]=student[j+1]。cout你已成功刪除學(xué)生信息endl。}void arrayofStu::display(){ int i。 else{cout已交費人員信息endl。 for( i=0。i++) if(student[i].flag) coutstudent[i]。 else {cout未交費人員信息endl。 for(i=0。i++) if(!student[i].flag) coutstudent[i]。int fl=0。string num。cinnum。icount1。break。jcount11。count1。}else cout沒有這個學(xué)生endl。int i,fl=0。 cout請輸入要查找的姓名endl。for(i=0。i++) if(na==student[i].name) { fl=1。}if(fl){ cout學(xué)號 姓名 用水量 用電量 用煤氣量 水費 電費 煤氣費 總額 是否交費endl。}else cout沒有這個學(xué)生endl。 int i,fl=0。cout請輸入要查找的學(xué)號endl。for(i=0。i++) if(num==student[i].number) { fl=1。}if(fl){cout學(xué)號 姓名 用水量 用電量 用煤氣量 水費 電費 煤氣費 總額 是否交費endl。}else cout沒有這個學(xué)生endl。 f學(xué)號 姓名 用水量 用電量 用煤氣量 水費 電費 煤氣費 總額 是否交費endl。icount1。 ()。}void arrayofStu::delet() //刪除學(xué)生菜單{ int choice。 cout\t\t\t\t 刪除信息endl。 cout\t\t\t\t 2,按姓名刪除endl。 cout\t\t\t\t 0,返回上一層endl。 while(1) { cout請輸入你的選擇endl。 switch(choice) { case 1: numd()。 //學(xué)號刪除 case 2: nad()。 //姓名刪除 case 3: xuesheng()。 //返回學(xué)生管理主菜單 case 0: amend()。 //返回上一層 } if(choice==0) break。 cout\t\t\t\t****************endl。 cout\t\t\t\t*1,輸入學(xué)號交費*endl。 cout\t\t\t\t*0, 返回上一層 *endl。 while(1) { cout請輸入你的選擇endl。 switch(choice) { case 1: numj()。 //輸入學(xué)號計費 case 2: naj()。 //輸入姓名計費 case 0: xuesheng()。 //返回上一層 } if(choice==0) break。 cout\t\t\t\t歡迎使用學(xué)生用戶管理系統(tǒng)endlendl。 cout\t\t\t\t*1,注冊學(xué)生*endl。 cout\t\t\t\t*3,繳納費用*endl。 cout\t\t\t\t*5,查看交費情況*endl。 cout\t\t\t\t*0,返回上一層*endl。 cout友情提示:第一次使用時,要進(jìn)行注冊!endlendl。) { cout請輸入您的選擇endl。 switch(choice) { case 1: regist()。 //注冊 case 2: amend()。 //修改 case 3: jiaofei()。 //繳納費用 case 4: check()。 case 5: display()。 case 6: save()。 case 0: break。 }}void arrayofStu::amend() //修改用戶菜單{ int choice。 cout\t\t\t\t1,增加學(xué)生 endl。 cout\t\t\t\t0,回上一層 endl。 cinchoice。 break。 break。 break。 }}void arrayofStu::check() //查詢菜單{ int choice。 cout 1,按姓名查找 endl。 cout 0,返回上一層 endl。while(1){ cout請輸入您的選擇endl。 switch(choice) { case 1: nacheck()。 //輸入姓名查找 case 2: numcheck()。 //輸入學(xué)號查找 case 0:xuesheng()。//如果是break時分析 } if(choice==0)break。power=xpower。name=xname。} void operator =(Teacher S)。operator (ostream amp。S) //插入運算符重載{ asetw(6)left。 asetw(10)。 asetw(10)()。 asetw(10)()。 if() a已交。 coutendl。 } double TGetW()。 //電費計算 double TGetG()。 //計算總的錢 string name。 int flag。void Teacher::operator =(Teacher S) //賦值運算符重載{name=。power=。}double Teacher::TGetW() //計算水費 { water_rate=*water。 }double Teacher::TGetC() //計算電費 { circuit=*power。 }double Teacher::TGetG() //計算煤氣費{gas_rate=*gas。}double Teacher::Ttotal() //計算應(yīng)該付的的錢{total=TGetW(
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1