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

正文內(nèi)容

學(xué)生成績管理系統(tǒng)的設(shè)計與實現(xiàn)-閱讀頁

2024-08-26 06:38本頁面
  

【正文】 dl。 int flag。iCurNum1。 for(int j=0。j++) { if(strcmp(student[j+1].No ,student[j].No)0 ) { flag=0。student[j+1]=student[j]。 } } if(flag) break。 //排序后重新顯示}//按總成績從大到小排序void SortScore(){ Student temp。 for(int i=0。i++) { flag=1。jCurNum1i。 temp=student[j+1]。student[j]=temp。 } Display()。 coutsetw(6)No。 coutsetw(6)Gender。 coutsetw(10)Score0。 coutsetw(10)Score2。}//顯示一個學(xué)生情況模塊void DisplayOne(Student* stu){ coutsetiosflags(ios_base::left)。 coutsetw(8)stuName。 coutresetiosflags(ios_base::left)。 coutsetw(10)stuScore[1]。 coutsetw(10)stuScore[3]endl。 (,ios::out)。 ()。// for(int i=0。i++) { outStudentsetw(6)(student+i)No。 outStudentsetw(6)(student+i)Gender。 outStudentsetw(10)(student+i)Score[1]。 outStudentsetw(10)(student+i)Score[3]endl。//}//檢查學(xué)生號是否存在,找到返回所在數(shù)組下標(biāo),找不到返回1模塊int CheckNo(char* no){ for(int i=0。i++) { if(strcmp(student[i].No,no)==0) //字符串比較函數(shù) { return i。}//讀入學(xué)生3項成績模塊void GetData(Student* stu){ for(int i=0。i++) { coutScorei= 。 } stuScore[3]=stuScore[0]+stuScore[1]+stuScore[2]。//模塊函數(shù)申明:int EnterChoice( )。 //數(shù)據(jù)文件初始化void Add( )。 //顯示全部學(xué)生void DisplayOne(Student *)。 //按學(xué)號排序(從小到大)void SortName( )。 //保存數(shù)據(jù)int CheckNo(char *)。 //顯示表頭void GetData(Student *)。 //修改學(xué)生成績void Upstudent( )。 //刪除一個學(xué)生void Query( )。 //保存學(xué)生信息void SortScore( )。const int MaxNum=100。 //當(dāng)前人數(shù)Student student[MaxNum]。 //調(diào)用Init()模塊函數(shù) int choice。 //調(diào)用Add()模塊函數(shù) break。 //調(diào)用Update()模塊函數(shù) break。 //調(diào)用Delete()模塊函數(shù) break。 //調(diào)用Query()模塊函數(shù) break。 //調(diào)用Display()模塊函數(shù) break。 //調(diào)用SortID()模塊函數(shù) break。 //調(diào)用SortScore()模塊函數(shù) break。 //調(diào)用 Upstudent()模塊函數(shù) break。} } Save()。經(jīng)過仔細(xì)看課本及查閱其他書籍,了解到C++語言中,文件包含預(yù)處理命令有兩種格式include文件名或include”文件名“,這兩種格式在查找文件的方式上有區(qū)別。像加extern表示對外部函數(shù)或全局變量聲明,用include cstring對字符串的復(fù)制,比較等等。
點擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1