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

正文內(nèi)容

面向?qū)ο骳課程設計(參考版)

2025-06-11 13:11本頁面
  

【正文】 return 0。 } if(choice==0) break。 break。 case 9: system(cls)。 slshowStuNode(sl)。 break。 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 27 slbubbleSort()。 break。 case 6: system(cls)。 slsearchStuNode()。 break。 break。 case 3: system(cls)。 slvisitAllNode()。 slvisitAllNode()。 break。 system(cls)。 cinEnScore。 cinaddress。 cinmajor。 cinbirthday。 cinsex。 cinname。 case 1: cout請輸入學生信息 :endl。 cinchoice。 cout\t\t┗━━━━━━━━━━━━━━━━━━━━━━━┛ endl。 cout\t\t┃ 4 = 導入學生信息 9 = 保存學生信息 ┃ endl。 cout\t\t┃ 2 = 刪除學生記錄 7 = 排序?qū)W生信息 ┃ endl。 cout\t\t┣━━━━━━━━━━━━━━━━━━━━━━━┫ endl。//讀取保存的文件內(nèi)容 while(1) { cout\t\t┏━━━━━ ━━━━━━━━━━━━━━━━━━┓ endl。 int choice。 string address。 string birthday。//調(diào)用無參構(gòu)造使得 s1head=NULL string name。 // /////////////////////////////////////////////////////////////// // // FileName : Course Design__Student // Creator : Berlin // Date : 2021318 10:20 // Comment :主函數(shù) // /////////////////////////////////////////////////////////////// include include include iostream include string using namespace std。//保證不產(chǎn)生“野指針(地址不明確的指針)” cout按外語成績排序后: endl。 delete p1。 } p1=thishead。 ptmp=p1getNext()getNext()。 p2setNext( p1getNext() )。 p1=p1getNext() ) { if( p1getNext()getEnScore() p1getNext()getNext()getEnScore() ) { p2 = p1getNext()getNext()。 for( p1=thishead 。 thishead = p1。 //設置頭指針 p1=new StudentNode。//臨時存放終止指針 StudentNode *p1。 } //對英語成績進行排序 void StudentLinklist::bubbleSort() { StudentNode *rear=NULL。 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 24 } else { cout沒有信息可以保存! endl。 p=pgetNext()。 exit(EXIT_FAILURE)。 (fileName,ios::out|ios::binary)。 cinfileName。 StudentNode *p=thishead。 } if(!flag) cout沒有名字為 name的學生! endl。 p=pgetNext()。 cout學生信息修改成功! endl。 cin_EnScore。 cin_address。 cin_major。 cin_birthday。 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 23 cin_sex。 cin_name。 } while(p!=NULL) { if(pgetName()==name) { cout請輸入學生信息 :endl。 endl。 cinname。 float _EnScore。 string _major。 string _sex。 int flag=0。 } } //修改學生信息 void StudentLinklist::modifyStuNode() { string name。 followGirl=followGirlgetNext()。 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 22 cout━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━ endl。 if(flag==1) { cout女學生信息 :endlendl。 } //打印女學生 flag=0。 followMen=followMengetNext()。 cout━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ endl。 if(flag==1) { cout男學生信息 :endlendl。 } //開始打印男女鏈表 int flag=0。 } else { cout沒有學生記錄統(tǒng)計個屁! endl。//主鏈表指針往下移 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 21 } followMen=。//復制構(gòu)造 followGirl=。 followGirl=followGirlgetNext()。 } } else//構(gòu)建女的鏈表 { if(!=NULL) { followGirlsetNext(new StudentNode(*follow))。 } else { =new StudentNode(*follow)。// 不 能 用followMen=new StudentNode(*follow)。 StudentNode *followGirl。 StudentNode *followMen。 } } } //按專業(yè) 進行統(tǒng)計 void StudentLinklist::showMajor() { 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 20 } //按性別進行統(tǒng)計 void StudentLinklist::showSex() { StudentNode *follow=thishead。 } if(flag==0) { cout年齡在 30及以上的學生為 0個 endl。 } followvisitStudentNode()。 coutsetw(5)編號 setw(10)學生姓名 setw(5)性別setw(10)生日 setw(15)專業(yè) setw(10)外語成績 setw(20)地址endl。//將 string 類年份轉(zhuǎn)換為字符串型再轉(zhuǎn)為整形 if( (yearbornyear+1)=30 ) { flag++。 while(follow!=NULL) { ( followgetBirthday(),0,4 )。 } follow=thishead。 } if(flag==0) { cout年齡為 2030之間的學生為 0個 endl。 } followvisitStudentNode()。 coutsetw(5)編號 setw(10)學生姓名 setw(5)性別setw(10)生日 setw(15)專業(yè) setw(10)外語成績 setw(20)地址endl。(yearbornyear+1)30 ) { flag++。//將 string 類年份轉(zhuǎn)換為字符串型再轉(zhuǎn)為整形 if( (yearbornyear+1)=20amp。 while(follow!=NULL) { ( followgetBirthday(),0,4 )。 } follow=thishead。 } if(flag==0) { cout年齡為 1020之間的學生為 0個 endl。 } 福建工程學院 信息學院 面向?qū)ο笳n程設計(題目范例) 18 followvisitStudentNode()。 coutsetw(5)編號 setw(10)學生姓名 setw(5)性別setw(10)生日 setw(15)專業(yè) setw(10)外語成績 setw(20)地址endl。(yearbornyear+1)20 ) { flag++。//將 string 類年份轉(zhuǎn)換為字符串型再轉(zhuǎn)為整形 if( (yearbornyear+1)=10amp。 while(follow!=NULL) { ( followgetBirthday(),0,4 )。 } follow=thishead。 } if(flag==0) { cout年齡為 010之間的學生為 0個 endl。 } followvisitStudentNode()。 coutsetw(5)編號 setw(10)學生姓名 setw(5)性別setw(10)
點擊復制文檔內(nèi)容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1