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

正文內(nèi)容

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

2025-07-04 08:40 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 1。i++) if(!student[i].flag) coutstudent[i]。}}void arrayofStu::numd( ) //按學(xué)號(hào)刪除{cout\t\t\t歡迎使用學(xué)號(hào)刪除學(xué)生功能endl。int fl=0。 int i,j。string num。cout請(qǐng)輸入要?jiǎng)h除學(xué)生的學(xué)號(hào)endl。cinnum。for(i=0。icount1。i++)if(num==student[i].number) {fl=1。break。}if(fl){for(j=i。jcount11。j++) student[j]=student[j+1]。count1。cout你已成功刪除學(xué)生信息endl。}else cout沒(méi)有這個(gè)學(xué)生endl。}void arrayofStu::nacheck( ) //姓名查詢{ cout\t\t\t歡迎使用姓名查詢學(xué)生功能endl。int i,fl=0。 string na。 cout請(qǐng)輸入要查找的姓名endl。 cinna。for(i=0。icount1。i++) if(na==student[i].name) { fl=1。break。}if(fl){ cout學(xué)號(hào) 姓名 用水量 用電量 用煤氣量 水費(fèi) 電費(fèi) 煤氣費(fèi) 總額 是否交費(fèi)endl。 coutstudent[i]endl。}else cout沒(méi)有這個(gè)學(xué)生endl。}void arrayofStu::numcheck() //學(xué)號(hào)查詢{ cout\t\t\t歡迎使用學(xué)號(hào)查詢學(xué)生功能endl。 int i,fl=0。string num。cout請(qǐng)輸入要查找的學(xué)號(hào)endl。cinnum。for(i=0。icount1。i++) if(num==student[i].number) { fl=1。break。}if(fl){cout學(xué)號(hào) 姓名 用水量 用電量 用煤氣量 水費(fèi) 電費(fèi) 煤氣費(fèi) 總額 是否交費(fèi)endl。 coutstudent[i]endl。}else cout沒(méi)有這個(gè)學(xué)生endl。}void arrayofStu::save(){ ofstream f()。 f學(xué)號(hào) 姓名 用水量 用電量 用煤氣量 水費(fèi) 電費(fèi) 煤氣費(fèi) 總額 是否交費(fèi)endl。for(int i=0。icount1。i++) fstudent[i]endl。 ()。 cout恭喜你,文件已成功保存endl。}void arrayofStu::delet() //刪除學(xué)生菜單{ int choice。 cout\t\t\t\t**************endl。 cout\t\t\t\t 刪除信息endl。 cout\t\t\t\t 1,按學(xué)號(hào)刪除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請(qǐng)輸入你的選擇endl。 cinchoice。 switch(choice) { case 1: numd()。 break。 //學(xué)號(hào)刪除 case 2: nad()。 break。 //姓名刪除 case 3: xuesheng()。 break。 //返回學(xué)生管理主菜單 case 0: amend()。 break。 //返回上一層 } if(choice==0) break。 }}void arrayofStu::jiaofei() //學(xué)生繳費(fèi)菜單{ int choice。 cout\t\t\t\t****************endl。 cout\t\t\t\t*學(xué)生繳費(fèi)*endl。 cout\t\t\t\t*1,輸入學(xué)號(hào)交費(fèi)*endl。 cout\t\t\t\t*2,輸入姓名交費(fèi)*endl。 cout\t\t\t\t*0, 返回上一層 *endl。 cout\t\t\t\t****************endl。 while(1) { cout請(qǐng)輸入你的選擇endl。 cinchoice。 switch(choice) { case 1: numj()。 break。 //輸入學(xué)號(hào)計(jì)費(fèi) case 2: naj()。 break。 //輸入姓名計(jì)費(fèi) case 0: xuesheng()。 break。 //返回上一層 } if(choice==0) break。 }}void arrayofStu::xuesheng() //學(xué)生用戶主菜單{ int choice。 cout\t\t\t\t歡迎使用學(xué)生用戶管理系統(tǒng)endlendl。 cout********************************endl。 cout\t\t\t\t*1,注冊(cè)學(xué)生*endl。 cout\t\t\t\t*2,修改用戶*endl。 cout\t\t\t\t*3,繳納費(fèi)用*endl。 cout\t\t\t\t*4,查詢費(fèi)用*endl。 cout\t\t\t\t*5,查看交費(fèi)情況*endl。 cout\t\t\t\t*6,保存信息到文件*endl。 cout\t\t\t\t*0,返回上一層*endl。 cout********************************endl。 cout友情提示:第一次使用時(shí),要進(jìn)行注冊(cè)!endlendl。for(。) { cout請(qǐng)輸入您的選擇endl。 cinchoice。 switch(choice) { case 1: regist()。 break。 //注冊(cè) case 2: amend()。 break。 //修改 case 3: jiaofei()。 break。 //繳納費(fèi)用 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修改學(xué)生信息endlendl。 cout\t\t\t\t1,增加學(xué)生 endl。 cout\t\t\t\t2,刪除學(xué)生 endl。 cout\t\t\t\t0,回上一層 endl。 while(1) { cout請(qǐng)輸入你的選擇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 查詢學(xué)生信息endlendl。 cout 1,按姓名查找 endl。 cout 2,按學(xué)號(hào)查找 endl。 cout 0,返回上一層 endl。 cout=============================================endl。while(1){ cout請(qǐng)輸入您的選擇endl。 cinchoice。 switch(choice) { case 1: nacheck()。 break。 //輸入姓名查找 case 2: numcheck()。 break。 //輸入學(xué)號(hào)查找 case 0:xuesheng()。 break。//如果是break時(shí)分析 } if(choice==0)break。}}class Teacher //教師 {public: T
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1