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

正文內(nèi)容

新學(xué)籍管理系統(tǒng)c做的-資料下載頁

2025-01-20 15:13本頁面

【導(dǎo)讀】cout<<"1----學(xué)生基本信息錄入2----學(xué)生信息查詢"<<endl;cout<<"5----學(xué)生信息刪除0----退出"<<endl;h2:cout<<"已經(jīng)記錄有"<<record_n<<"個學(xué)生的數(shù)據(jù),請選擇:";cout<<"請輸入要修改的學(xué)生學(xué)號:";cout<<"學(xué)號:"<<setw<<stud1[i].num<<"姓名:"<<setw<<stud1[i].name<<endl;\n未找到該學(xué)號,";

  

【正文】 k。//按學(xué)號查詢 } display()。 break。 } case 39。539。: cout************現(xiàn)在進行學(xué)生總成績和平均成績的查詢 ***************\n。 tongji(head)。 display()。 break。 case 39。639。: cout****************現(xiàn)在進行學(xué)生信息的保存 *********************\n。 readin(head)。 display()。 break。 case 39。739。: cout***************現(xiàn)在進行指定的學(xué)生信息的刪除 *****************\n。 shanchu(head)。 show(head)。 display()。 break。 //刪除 case 39。839。: cout ╔═══════════════════════════╗\n。 cout ║ 您已退出學(xué)生學(xué)籍管理系統(tǒng) , 謝謝您的使用 ! ║\n。 cout ╚═══════════════════════════╝\n。 coutendl。 exit(0)。 break。 } }while(flag2==1)。 } ////////////////////////////////顯示菜單 void display() { cout ╔═══════════════════════════╗endl。 cout ║ ☆ 學(xué)籍管理系統(tǒng) ☆ ║endl。 cout ║═══════════════════════════║endl。 cout ║ ║endl。 cout ║ (1)學(xué)生數(shù)據(jù)的錄入 ║endl。 cout ║ (2)學(xué)生數(shù)據(jù)的修改 ║endl。 cout ║ (3)顯示學(xué)生信息 ║endl。 cout ║ (4)查詢學(xué)生信息 ║endl。 cout ║ (1)按學(xué)號查詢 ║endl。 cout ║ (2)按姓名查詢 ║endl。 cout ║ 統(tǒng)計總成績和平均成績 ║endl。 cout ║ (5)查詢學(xué)生總成績和平均成績 ║endl。 cout ║ (6)保存學(xué)生信息 ║endl。 cout ║ (7)刪除 指定的學(xué)生信息 ║endl。 cout ║ (8)退出程序 ║endl。 cout ║ ║endl。 cout ║═══════════════════════════║endl。 cout ║注:請輸入相應(yīng)括號里的阿拉伯數(shù)字來執(zhí)行相關(guān)操作! ║endl。 cout ║ 要保存數(shù)據(jù)請先建立好指定文件: ║endl。 cout ║ (D:\\學(xué)籍管理系統(tǒng) \\學(xué)生成績 .txt) ║endl。 cout ╟———————————————————————————╢endl。 cout ║===================謝謝您的使用=======================║endl。 cout ╚═══════════════════════════╝endl。 cout → 請選擇相應(yīng)的數(shù)字進行操作 : endl。 } ////////////////////////////////顯示學(xué)生數(shù)據(jù) void show(student *head) { student *stu=headnext。 cout | 學(xué)號 | 姓名 | 語文 | 數(shù)學(xué) | 英語 |總成績 |平均成績 |endl。 while(stu!=NULL) { cout | setw(4)(*stu).mun。 cout | setw(4)(*stu).name。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | endl。 stu=stunext。 } system(pause)。 } ///////////////////////////////保存學(xué)生數(shù)據(jù) void readin(student *head) { char a。 student *stu=headnext。 cout現(xiàn)在保存輸入學(xué)生數(shù)據(jù),是否繼續(xù)操作 ?(y/n)。 cina。 ofstream outfile(D:\\學(xué)籍管理系統(tǒng) \\學(xué)生成績 .txt,ios::out)。 if(! outfile) { cout!!!!!!!!打開文件錯誤 !!!!!!!\n。 cout!!!要保存數(shù)據(jù)請先建立好指定文件: D:\\學(xué)籍管理系統(tǒng) \\學(xué)生成績 .txt!!!\n。 exit(0)。 } while(a!=39。n39。) { while(stu!=NULL) { outfile****************第 amount個學(xué)生的數(shù)據(jù) :***************\n。 outfile| 學(xué)號 | 姓名 | 語文 | 數(shù)學(xué) | 英語 |總成績 |平均成績 |endl。 outfile 學(xué)生成績 : \n | setw(4)(*stu).mun | setw(4)(*stu).name | setw(4)(*stu). | setw(4)(*stu). | setw(4)(*stu). |setw(4)(*stu). | setw(4)(*stu). | endl。 amount++。 stu=stunext。 } break。 } cout......成功將學(xué)生數(shù)據(jù)保存到 學(xué)生成績 .txt中 ! 。 ()。 } ///////////////////////////////錄入學(xué)生數(shù)據(jù) void input(student *head) { char c。 int j=0。 student *p=head。 file[j]=new ofstream(D:\\學(xué) 籍管理系統(tǒng) \\學(xué)生成績 .txt,ios::app)。 do { student *stu=new student。 cout請輸入學(xué)號 (限 4位數(shù)內(nèi) ):setw(4)。 cin(*stu).mun。 cout請輸入姓名: setw(10)。 cin(*stu).name。 cout請輸入語文成績 :setw(2)。 cin(*stu).。 //cout(*stu).endl。 cout請輸入數(shù)學(xué)成績 :setw(2)。 cin(*stu).。 //cout(*stu).endl。 cout請輸入英語成績 :setw(2)。 cin(*stu).。 //cout(*stu).endl。 (*stu).=(*stu).+(*stu).+(*stu).。 //cout(*stu).endl。 (*stu).=((*stu).+(*stu).+(*stu).)/3。 //cout(*stu).endl。 stunext=pnext。 pnext=stu。 amount++。 cout數(shù)據(jù)錄入成功,想繼續(xù)錄入嗎 (y/n)。 cinc。 p=pnext。 while(c!=39。y39。amp。amp。c!=39。n39。) { cout!!!!!!!!!!指令錯誤 請輸入 y/n!!!!!!!!!!!endl。 cout數(shù)據(jù)錄入成功,想繼續(xù)錄入嗎 (y/n)。 cinc。 } }while(c==39。y39。)。 j++。 cout輸入了 amount個學(xué)生的信息 .endl。 } ////////////////////////////////使用姓名查詢學(xué)生數(shù)據(jù) void search1(student *head)//姓名查詢 { char c。 string name。 do { student *stu=headnext。 bool flag=0。 cout請輸入你要查詢的學(xué)生姓名 :。 cinname。 do{ if(stu!=NULLamp。amp。name==(*stu).name) //輸出學(xué)生成績 { flag=1。 cout | 學(xué)號 | 姓名 | 語文 | 數(shù)學(xué) | 英語 |總成績 |平均成績 |endl。 cout | setw(4)(*stu).mun。 cout | setw(4)(*stu).name。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).。 cout | endl。 } stu=stunext。 }while(stu!=NULL)。 if(flag==0) cout!!!!!!!!!!!!!對不起 !您要查詢的學(xué)生不存在 !!!!!!!!!!!endl。 cout您想繼續(xù)查詢嗎 ?(y/n)。 cinc。 while(c!=39。y39。amp。amp。c!=39。n39。) { cout!!!!!!!!!!!!!!指令錯誤 請輸入 y/n!!!!!!!!!!!!endl。 cout
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1