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

正文內(nèi)容

c宿舍管理系統(tǒng)實(shí)現(xiàn)(編輯修改稿)

2024-10-11 09:36 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 (學(xué)生信息 .txt)。 if(!fout3) { couterrorendl。 exit(0)。 } ()。//格式化當(dāng)前信息 。 j++。 ofstream fout。 (學(xué)生信息 .txt,ios::app)。 if(!fout) { couterror!endl。 exit(0)。 } for(int s=0。srenshu。s++)//輸入非刪除信息至文件 { if(s!=i) { foutarray3[s].nameendl。 foutarray3[s].numberendl。 foutarray3[s].banjiendl。 foutarray3[s].sushehaoendl。 } } ()。 cout已刪除 !endl。 break。 } } if(j==0)//查找失敗時(shí) { cout不存在該生信息 !endl。 } } void xueshan()//實(shí)現(xiàn)細(xì)節(jié)于上個(gè)函數(shù) { student2 array4[100]。 int renshu=0。 char number[20]。 int j=0。 ifstream fin(學(xué)生信息 .txt)。 if(!fin) { couterror!endl。 exit(0)。 } while(!()) { finarray4[renshu].namearray4[renshu].numberarray4[renshu].banjiarray4[renshu].sushehao。 renshu++。 } renshu。 ()。 cout待刪除信息的學(xué)號(hào) :。 cinnumber。 for(int i=0。irenshu。i++) { if(!strcmp(array4[i].number,number)) { ofstream fout3。 (學(xué)生信息 .txt)。 if(!fout3) { couterrorendl。 exit(0)。 } ()。 。 j++。 ofstream fout。 (學(xué)生信息 .txt,ios::app)。 if(!fout) { couterror!endl。 exit(0)。 } for(int s=0。srenshu。s++) { if(s!=i) { foutarray4[s].nameendl。 foutarray4[s].numberendl。 foutarray4[s].banjiendl。 foutarray4[s].sushehaoendl。 } } ()。 cout已刪除 !endl。 break。 } } if(j==0) { cout不存在該生信息 !endl。 } } : void show()//主界面顯示信息 { time_t t。time(amp。t)。 cout 宿舍管理查詢系統(tǒng) endl。 cout \t\t\t 時(shí)間 : ctime(amp。t)。 cout\n。 cout1:建立宿舍信息 。 cout\t\t\t\t\t\t\t 2:查詢學(xué)生信息 \n。 cout3:宿舍信息匯總 。 cout\t\t\t\t\t\t\t 4:修改學(xué)生信息 \n。 cout5:注冊(cè)學(xué)生信息 。 cout\t\t\t\t\t\t\t 6:刪除學(xué)生信息 \n。 cout7:宿舍衛(wèi)生評(píng)比 。 cout\t\t\t\t\t\t\t 8:修改登錄信息 \n。 cout\n。 cout請(qǐng)選擇( 0退出): 。 } : void show2()//進(jìn)行操作后顯示的主界面信息 { cout\n。 cout1:建立宿舍信息 。 cout\t\t\t\t\t\t\t 2:查詢學(xué)生信息 \n。 cout3:宿舍信息匯總 。 cout\t\t\t\t\t\t\t 4:修改學(xué)生信息 \n。 cout5:注冊(cè)學(xué)生信息 。 cout\t\t\t\t\t\t\t 6:刪除學(xué)生信息 \n。 cout7:宿舍衛(wèi)生評(píng)比 。 cout\t\t\t\t\t\t\t 8:修改登錄信息 \n。 cout\n。 cout請(qǐng)選擇( 0退出): 。 } : struct wei//宿舍衛(wèi)生存儲(chǔ)結(jié)構(gòu) { int sushehao。 int score。 }。 void sort(wei*l,int low,int high)。//快速排序函數(shù) int partion(wei*l,int low,int high)。//返回樞軸位置 void weisheng() { student2 array5[100]。//學(xué)生信息存儲(chǔ)結(jié)構(gòu) wei sheng[100]。//宿舍衛(wèi)生信息存儲(chǔ)結(jié)構(gòu) int renshu=0。 int susheshu=0。 int i=0。 ifstream fin1(學(xué)生信息 .txt)。 if(!fin1) { couterror!endl。 exit(0)。 } while(!())//讀入學(xué)生信息 { fin1array5[renshu].namearray5[renshu].numberarray5[renshu].banjiarray5[renshu].sushehao。 renshu++。 } renshu。//記錄人數(shù) ()。 if(renshu!=0) { sheng[susheshu].sushehao=array5[i].sushehao。 susheshu++。 for(i=1。irenshu。i++)//建立已入住的宿舍信息存儲(chǔ)數(shù)組 { if(array5[i1].sushehao!=array5[i].sushehao) { sheng[susheshu].sushehao=array5[i].sushehao。 susheshu++。 } } cout為各宿舍打分( 0~100) :endl。//為各入住宿舍打分 for(i=0。isusheshu。i++) { cout宿舍 sheng[i].sushehao得分 :。 cinsheng[i].score。 } wei*l。 l=sheng。 i=susheshu1。 sort(l,0,i)。//按得分對(duì)宿舍信息進(jìn)行排序 ofstream fout3。 (宿舍衛(wèi)生信息 .txt)。 if(!fout3) { couterror!endl。 exit(0)。 } ()。//格式化上次得分信息 ()。 ofstream fout2。 (宿舍衛(wèi)生信息 .txt,ios::app)。 if(!fout2) { couterror!endl。 exit(0)。 } for(i=0。isusheshu。i++)//寫入宿舍衛(wèi)生信息至
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1