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

正文內(nèi)容

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

2025-01-20 15:13本頁(yè)面

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

  

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