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

正文內(nèi)容

學(xué)生學(xué)籍管理系統(tǒng)課程設(shè)計報告c-資料下載頁

2025-01-21 09:20本頁面

【導(dǎo)讀】改,刪除,查找,學(xué)籍變化等操作。系統(tǒng)必須以菜單方式工作;刪除已知學(xué)號的學(xué)生信息;查詢學(xué)生學(xué)籍變化,比如入學(xué),轉(zhuǎn)專業(yè),退學(xué),降級,休學(xué),畢業(yè);的成員函數(shù)來單獨完成菜單功能,然后在主函數(shù)調(diào)用。據(jù)成員,學(xué)號num,姓名name,性別sex,a年齡age,籍貫address,學(xué)院collge,班級classes,專業(yè)zhuan;再定義一個student的next指針student*next;這樣是將兩個類聯(lián)系起來的橋梁。Stringgetzhuan();//返回專業(yè)zhuan;voidgetxueji//將6個整型值分。印在屏幕,下面會講述;student的對象)實現(xiàn)對學(xué)生類中input的調(diào)用;main()//主函數(shù)中實現(xiàn)對象的建立和各個功能的調(diào)用和主菜單的循環(huán);這里我們將詳細的介紹各個函數(shù)的函數(shù)體實現(xiàn)與之間的調(diào)用;stringgetname(){returnname;}//返回姓名name;name為字符串型;

  

【正文】 udent *p=head。int num。 cout輸入查詢學(xué)生學(xué)號: 。 cinnum。 if(pgetnum()!=num) {p=pnext。} cout該學(xué)生的學(xué)籍信息為: 。 pgetxueji(pb,pc,pd,pe,pf,pg)。 } void operate::show() { student *p。 p=head。 while(pnext) { (pnext)output()。 p=pnext。 } } void operate::bf()//初始化函數(shù), 文件操作 { student *p,*p2。 p=head。 long t。 ifstream is(課設(shè) .txt,ios::in)。 if(!is) { ofstream os(課設(shè) .txt,ios::out)。//進行寫操作 ()。 return 。 } int num=1。 while(1) { num=1。 t=()。 isnum。 (t)。//不連續(xù)進行訪問 if(num0) { ()。 return。 } p2=new student。 p2input(is)。 pnext=p2。 p2next=NULL。 p=pnext。 } } void operate::save() //保存函數(shù) { student *p。 p=head。 ofstream os(課設(shè) .txt,ios::out)。//打開文件進行寫入保存 while(pnext) { (pnext)output(os)。 p=pnext。 } cout\t\t\t 文件已保存 ! endl。 operate::setkey(0)。 } int operate::find(student **p1,int num,string pn) { student *p。 p=head。 while(pnext) { (*p1)=p。 if( (pnext)getnum()==num||(pnext)getname()==pn) return 1。 p=pnext。 } return 0。 } void operate::found() { student *p。 int num=1。int t=1。 string name。 do { cout1:按學(xué)號查找 , 2:按姓名查找: 。 cint。 }while(t2||t1)。 if(t==1) { cout\t\t\t 請輸入學(xué)號: 。 cinnum。 } if(t==2) { cout\t\t\t 請輸入姓名: 。 cinname。 } if( !find(amp。p,num,name) ) { cout\t\t 找不到你要查找的內(nèi)容 !endl。 return。 }(pnext)output()。 } void operate::del() { student *p,*p2。 int num。 cout\t\t\t 輸入學(xué)號: 。cinnum。 if( !find(amp。p,num,^) ) { cout\t\t 找不到你要刪除的內(nèi)容 !endl。 return。 } (pnext)output()。 p2=pnext。 pnext=p2next。 delete p2。 } void operate::mend() { student *p。 int num=1,n。 string name。 do { cout\t\t1:按學(xué)號修改, 2:按姓名修改: 。 cinn。 }while(n1||n2)。 if(n==1) { cout\t\t\t 輸入學(xué)號: 。 cinnum。 } if(n==2) { cout\t\t\t 輸入姓名: 。 cinname。 } if( !find(amp。p,num,name) ) { cout\t\t 找不到你要修改的內(nèi)容 !endl。 return。 } (pnext)output()。 cout\t\t\t 輸入修改信息: 。 (pnext)input()。 } int operate::mainmenu() { int n。 cout\t \001 \001 \001 \001 \001 歡迎光臨學(xué)生學(xué)籍管理系統(tǒng) \001 \001 \001 \001 \001 endl * * * * * * * * * * * * * * * * * * * * * * * * * * *endl * * * * * * * * * * * * * * * * * * * * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * \001 * * * * * * * *endl * * * * * * * * * * * * * * * * * * * * * * * * * * *endl * * * * * * * * * * * * * * * * * * * * * * * * * * *endl 請選擇: 。 cinn。 return n。 } void main() { operate o。 int n=1。int c。 ()。 while(n) { coutendl。 c=()。 switch(c) { case 1:()。break。 case 2:()。break。 case 3:()。break。 case 4:()。break。 case 5:()。break。 case 6:()。break。 case 7:()。break。 case 8:()。break。 case 9:()。break。 case 0: { if(()==1) {cout是否保存,按 1:保存,按 2:不保存。選擇 :。 cinn。 if(n==1) { ()。}} n=0。 break。 } } } }
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1