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

正文內(nèi)容

c宿舍管理系統(tǒng)實現(xiàn)-閱讀頁

2024-09-25 09:36本頁面
  

【正文】 shehao。 } coutendl。 } } else { cout當(dāng)前宿舍信息為空 !endl。 show2()。 sort(l,low,key1)。 } } int partion(wei*l,int low,int high)//返回樞軸位置 { int p=0。 int key=l[low].score。amp。 } p=l[low].score。 l[low].score=l[high].score。 l[high].score=p。 while(lowhighamp。l[low].score=key) { ++low。 q=l[low].sushehao。 l[low].sushehao=l[high].sushehao。 l[high].sushehao=q。 } : void mingxiu(int renshu)。//按學(xué)號修改 student2 array2[100]。 int renshu=0。 if(!fin) { couterror!endl。 } while(!())//輸入學(xué)生信息 { finarray2[renshu].namearray2[renshu].numberarray2[renshu].banjiarray2[renshu].sushehao。 } renshu。 cout1:按名字修改 :。 cout請選擇( 0返回) :。 while(choice!=0) { switch(choice) { case 1:mingxiu(renshu)。 case 2:xuexiu(renshu)。 case 0:break。break。 cinchoice。 show2()。 int j=0。//輸入待修改的信息的名字 cinna。irenshu。 cinarray2[i].name。 cinarray2[i].number。 cinarray2[i].banji。 cinarray2[i].sushehao。 ofstream fout3。 if(!fout3) { couterrorendl。 } ()。 ofstream fout。 if(!fout) { couterror!endl。 } for(int s=0。s++)//寫入修改后的信息至文件 { foutarray2[s].nameendl。 foutarray2[s].banjiendl。 } ()。 break。 } } void xuexiu(int renshu)//實現(xiàn)細(xì)節(jié)類是與上個函數(shù) { char number[20]。 cout待修改信息的學(xué)號 :。 for(int i=0。i++) { if(!strcmp(array2[i].number,number)) { cout姓名 :。 cout學(xué)號 :。 cout班級 :。 cout宿舍號 :。 j++。 (學(xué)生信息 .txt)。 exit(0)。 。 (學(xué)生信息 .txt,ios::app)。 exit(0)。srenshu。 foutarray2[s].numberendl。 foutarray2[s].sushehaoendl。 cout已修改 ,。 } } if(j==0) { cout不存在該生信息 !endl。//存儲登錄信息的輔助數(shù)組 char mima1[10]。// char mima[10]。 if(!fin1) { couterror!endl。 } fin1yonghu//讀入舊的登錄信息 mima。 cout舊用戶名 :。 cout舊密碼 :。 if(!(strcmp(yonghu1,yonghu)||strcmp(mima1,mima)))//判斷是否為合法 用戶 { cout新用戶名 :。 cout新密碼 :。 cout已完成修改 !endl。 if(!fout) { couterror!endl。 } foutyonghuendl。// } else { cout輸入錯誤 ,自 動返回 !endl。 } : struct student3//存儲學(xué)生信息及其對應(yīng)宿舍的層數(shù) { char name[20]。 char banji[20]。 int cheng2。 void zhuce() { student*pp=NULL。//輔助存儲變量 char louhao[20]。int fangjian。int renshu1=0。// student3 lou3[100]。 if(!fin1) { couterror!endl。 } fin1louhaolouchengfangjianrongliang。 cout宿舍號( 100。// cout...(100*loucheng)。// cinppsushehao。 } cheng2=ppsushehao/100。 if(!fin2) { couterror!endl。 } while(!())//輸入學(xué)生信息 { fin2lou3[renshu1].namelou3[renshu1].numberlou3[renshu1].banjilou3[renshu1].sushehao。 } renshu1。 for(int i=0。i++)//判斷每個學(xué)生對應(yīng)的宿舍所在層數(shù) { lou3[i].cheng2=lou3[i].sushehao/100。 if(!fout1) { couterror!endl。 } ()。 for(i=0。i++)//按樓層逐層插入信息 { sushe*lou2=new sushe[fangjian]。jfangjian。 lou2[j].next=NULL。srenshu1。 student*p=NULL。 strcpy(qname,lou3[s].name)。 strcpy(qbanji,lou3[s].banji)。 if(lou2[qsushehao%100].renshu==0) { lou2[qsushehao%100].next=q。 lou2[qsushehao%100].renshu++。 for(int m=0。m++) { p=pnext。 qnext=NULL。 } } } else { break。 cout名 字 :。 cout學(xué)號 :。 cout班級 :。 if(lou2[ppsushehao%100].renshu==0) { lou2[ppsushehao%100].next=pp。 lou2[ppsushehao%100].renshu++。 for(int mm=0。mm++) { qq=qqnext。 ppnext=NULL。 } } else { cout該房間已滿 !endl。 ofstream fout2。 if(!fout2) { couterror!endl。 } for(int jj=0。jj++)//寫 入該層信息至文件 { if(lou2[jj].renshu!=0) { ppp=new student。 for(int sss=0。sss++) { fout2pppnameendl。 fout2pppbanjiendl。 ppp=pppnext。 delete[]lou2。 show2(
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1