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

正文內(nèi)容

學(xué)生信息管理系統(tǒng)c課設(shè)報告(編輯修改稿)

2025-01-22 02:31 本頁面
 

【文章內(nèi)容簡介】 } } cout查無此人! endl。 }break。 case 2:{ cout請輸入要查找的姓名 endl。 string name。 cinname。 for(int i=0。itop。i++) { if(zhong[i].GetName()==name) { zhong[i].Output()。 } } for( i=0。itop。i++) if(zhong[i].GetName()==name) return。 cout查無此人! endl。 }break。 default :cout無此選項 !請重試 !endl。break。 } } void xiao_Manage::Edit()//小學(xué)生 { if(top==0) { cout當前系統(tǒng)中沒有存 儲記錄 !endl。 return。 } int num。 cout請輸入要查找的教編號 :endl。 15 cinnum。 for(int i=0。itop。i++) { if(zhong[i].GetNum()==num) { cout請對這位教師的信息進行修改 :endl。 zhong[i].Input()。 cout修改成功 endl。return。 } } cout查無此人 endl。 } void xiao_Manage::Delete()//小學(xué)生 { if(top==0) { cout當前系統(tǒng)中沒有存儲記錄 !endl。 return。 } cout按編號查找刪除 按姓名查找刪除 endl。 int choice。 cinchoice。 switch(choice) { case 1: { cout請輸入編號: 。 int num。 cinnum。 for(int i=0。itop。i++) { if(num==zhong[i].num) { cout是否確認刪除? 是 否 endl。 int choice。 cinchoice。 switch(choice) { case 1: { for(int j=i。jtop1。j++) zhong[j]=zhong[j+1]。 cout刪除成功! endl。 top。 16 }。break。 case 2:return。 default:cout無此項,失??! endl。break。 }return。 } } cout無此人! endl。 } 。break。 case 2: { cout請輸入姓名: 。 string name。 cinname。 for(int i=0。itop。i++) { if(name==zhong[i].name) { cout是否確認刪除? 是 否 endl。 int choice。 cinchoice。 switch(choice) { case 1: { for(int j=i。jtop1。j++) zhong[j]=zhong[j+1]。 cout刪除成功! endl。 top。 }。break。 case 2:return。 default:cout無此項,失??! endl。break。 }return。 } } cout無此人! endl。 }。 break。 default:cout沒有此項,失?。?endl。break。 } } void xiao_Manage::Total()//小學(xué)生 { cout1 按人數(shù)統(tǒng)計 2 按性別統(tǒng)計 endl。 int choice。 17 cout請輸入你的選擇 endl。 cinchoice。 switch(choice) { case 1:cout小學(xué)生人數(shù)為 :topendl。break。 case 2: { int a=0,b=0。//分別用于統(tǒng)計男女的人數(shù) for(int i=0。itop。i++) { if(zhong[i].sex==男 ) a++。 if(zhong[i].sex==女 ) b++。 } cout男性人數(shù)為 aendl。 cout女 性人數(shù)為 bendl。 }break。 default:cout輸入錯誤。請重新輸入 endl。break。 } } void xiao_Manage::Save()//小學(xué)生 { ofstream out(D:\\,ios::out)。//定義文件流對象,打開磁盤文件,ofstream用來支持從磁盤文件的輸入 if(!out) { cout打開失敗 !endl。 return。 } cout打開成功 !endl。 for(int i=0。itop。i++) { outzhong[i].num zhong[i].name zhong[i].sex zhong[i].age zhong[i].yuwen zhong[i].yingyu endl。//向磁盤文件輸出數(shù)據(jù) } cout寫入成功! endl。 ()。 } void xiao_Manage::Read()//小學(xué)生 { 18 ifstream in(D:\\,ios::in)。//ifstream用來支持向磁盤文件的輸出 if(!in) { cout打開失敗 !endl。 return。 } int i=0。 while(inzhong[i].num zhong[i].name zhong[i].sex zhong[i].age zhong[i].yuwen zhong[i].yingyu)//當讀取成功執(zhí)行下面的語句 { zhong[i].Output()。 i++。 top++。 } ()。 }。 class zhong_Manage { zhongxuesheng zhong[TMAX]。 //TMAX為常量,為數(shù)組中可存儲的教師記錄的最大數(shù); int top。 //top表示當前系統(tǒng)中存儲的記錄個數(shù); public: zhong_Manage(){top=0。} //初始時記錄的 個數(shù)為 0,所以設(shè)置 top=0。 void Add()。 //添加; void Show()。 //顯示; void Search()。 //查詢; void Edit()。 //修改; void Delete()。 //刪除; void Total()。 //統(tǒng)計; void Save()。 //保存到文件; void Read()。 //讀取到該類的數(shù)組中; }。 void zhong_Manage::Add() { if(top=TMAX) { cout用戶已滿 endl。 return。 } zhongxuesheng t。 cout輸入新添加的人員的信息 endl。 19 ()。 for(int i=0。itop。i++) if (()==zhong[i].GetNum()) { cout該編號的人員已存在 endl。 return。 } zhong[top]=t。 top=top+1。 cout添加成功 !endl。 } void zhong_Manage::Show() { if(top==0) { cout無數(shù)據(jù) !endl。 return。 } for(int i=0。itop。i++) zhong[i].Output()。 } void zhong_Manage::Search() { if(top==0) { cout當前系統(tǒng)中沒有存儲記錄 endl。 return。 } int choice。 cout請選擇查找方式 : .endl。 cinchoice。 switch(choice) { case 1:{ cout請輸入要查找的編號 :endl。 int num。 cinnum。 for(int i=0。itop。i++) { if(zhong[i].GetNum()==num) { zhong[i].Output()。 return。 20 } } cout查無此人! endl。 }break。 case 2:{ cout請輸入要查找的姓名 endl。 string name。 cinname。 for(int i=0。itop。i++) { if(zhong[i].GetName()==name) { zhong[i].Output()。 } } for( i=0。itop。i++) if(zhong[i].GetName()==name) return。 cout查無此人! endl。 }break。 default :cout無此選項 !請重試 !endl。break。 } } void zhong_Manage::Edit() { if(top==0) { cout當前系統(tǒng)中沒有存儲記錄 !endl。 return。 } int num。 cout請輸入要查找的教編號 :endl。 cinnum。 for(int i=0。itop。i++) { if(zhong[i].GetNum()==num) { cout請對該生信息進行修改 :endl。 zhong[i].Input()。 cout修改成功 endl。return。 } } cout查無此人 endl
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1