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

正文內(nèi)容

學(xué)生學(xué)籍管理系統(tǒng)課程設(shè)計(jì)報(bào)告c(參考版)

2025-01-25 09:20本頁(yè)面
  

【正文】 break。 if(n==1) { ()。選擇 :。break。break。break。break。break。break。break。break。break。 c=()。 ()。 int n=1。 return 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 請(qǐng)選擇: 。 (pnext)input()。 } (pnext)output()。p,num,name) ) { cout\t\t 找不到你要修改的內(nèi)容 !endl。 cinname。 cinnum。 }while(n1||n2)。 do { cout\t\t1:按學(xué)號(hào)修改, 2:按姓名修改: 。 int num=1,n。 delete p2。 p2=pnext。 return。 if( !find(amp。 cout\t\t\t 輸入學(xué)號(hào): 。 } void operate::del() { student *p,*p2。 return。 } if( !find(amp。 } if(t==2) { cout\t\t\t 請(qǐng)輸入姓名: 。 if(t==1) { cout\t\t\t 請(qǐng)輸入學(xué)號(hào): 。 cint。 string name。 int num=1。 } return 0。 if( (pnext)getnum()==num||(pnext)getname()==pn) return 1。 p=head。 operate::setkey(0)。 p=pnext。 ofstream os(課設(shè) .txt,ios::out)。 } } void operate::save() //保存函數(shù) { student *p。 p2next=NULL。 p2input(is)。 return。 (t)。 t=()。 } int num=1。//進(jìn)行寫(xiě)操作 ()。 ifstream is(課設(shè) .txt,ios::in)。 p=head。 p=pnext。 p=head。 pgetxueji(pb,pc,pd,pe,pf,pg)。 if(pgetnum()!=num) {p=pnext。 cout輸入查詢學(xué)生學(xué)號(hào): 。 } } void operate::xueji() { student *p=head。 while(pnext) { cout學(xué)號(hào) :(pnext)getnum() 專(zhuān)業(yè) :(pnext)getzhuan() 籍貫 :(pnext)getplace() endl。 } void operate::jiguan() { student *p。 cinn。 p=pnext。 pnext=p2。 while(n) { p2=new student。 int n。 void operate::input() { student *p,*p2=NULL。}void setkey(int k){key=k。 int mainmenu()。void bf()。 void xueji()。 void add()。void found()。void show()。} ~operate(){delete head。 headnext=NULL。 int key。 } }。 } void output(ofstream amp。 cout 班級(jí) :classes。 cout 籍貫 :address。 cout 年齡 :age。 cout學(xué)號(hào) :num。 ()。 } void input(ifstream amp。 a=1。 a=0。 cinbcdefg。 cout\t\t 輸入學(xué)籍信息 ,請(qǐng)依次輸入 6 個(gè)數(shù):( 0 或 1) 。cinzhuan。cinclasses。cincollage。cinaddress。cinsex。cinage。cinname。cinnum。 cout\t\t\t 請(qǐng)按提示輸入 :endl。 else cout已畢業(yè) 。 else cout已休學(xué) 。 else cout已降級(jí) 。 else cout已退學(xué) 。 else cout未轉(zhuǎn)專(zhuān)業(yè) 。 } if(b==0) { cout暫無(wú)學(xué)籍信息 。 } void getxueji(int b,int c,int d,int e,int f,int g) { if(b==1) cout入學(xué) 。} string getplace() { return address。 student(){} ~student(){ } string getname() { return name。 public: int b,c,d,e,f,g。 string classes。 string address。 string sex。 class student { protected: int num。os) Getxueji() Getzhuan() Output() Getnum() 四 調(diào)試分析 ,但是因?yàn)閮H僅用一個(gè)類(lèi)去調(diào)用另一個(gè)類(lèi)的函數(shù),所以就用一個(gè)類(lèi)的對(duì)象指針作為另一個(gè)類(lèi)的數(shù)據(jù)成員 更為合適,調(diào)用也簡(jiǎn)單很多 ,但是卻都是不太難,可以在努力下改正,但是運(yùn)行是卻出現(xiàn)問(wèn)題,會(huì)自動(dòng)出現(xiàn)錯(cuò)誤而關(guān)閉,后來(lái)知道是指針的運(yùn)用不當(dāng)!在 input 函數(shù)中當(dāng) p2 指向?qū)W生類(lèi)中的 input()之后,應(yīng)先將 p2 賦給 pnext 而不是將pnext 賦給 p2,這樣 p2 空間出現(xiàn)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1