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

正文內(nèi)容

學(xué)生成績管理系統(tǒng)的設(shè)計與實現(xiàn)-全文預(yù)覽

2025-08-28 06:38 上一頁面

下一頁面
  

【正文】 *************////主函數(shù)文件// include iostreaminclude fstreaminclude iomanipinclude stringinclude using namespace std。i3。iCurNum。 outStudentsetw(10)(student+i)Score[2]。 outStudentsetw(8)(student+i)Name。// (,ios::out)。}//保存學(xué)生數(shù)據(jù)文件void Save(){ ofstream outCount,outStudent。 coutsetw(10)stuScore[0]。 coutsetw(6)stuNo。 coutsetw(10)Score1。 coutsetw(8)Name。 } } if(flag) break。j++) { if(student[j+1].Score[3]student[j].Score[3]) { flag=0。iCurNum1。 } Display()。 temp=student[j+1]。i++) { flag=1。 }}//按學(xué)生號從小到大冒泡排序,并顯示模塊void SortID() { Student temp。 coutsetw(10)(student+i)Score[0]。 coutsetw(6)(student+i)No。 //調(diào)用顯示表頭模塊 int i。 if(t!=1) { PrintTitle()。 coutNo= 。i++) { student[i]=student[i+1]。 int t。 } else { cout該學(xué)生不存在endl。 cin(student+t)Gender 。 cin(student+t)No 。 cinno。//顯示表頭 DisplayOne(student+t)。 int t。 //排序后重新顯示 CurNum++。 cin(student+CurNum)Gender 。 else { strcpy(student[CurNum].No ,no)。 coutNo= 。 / } ()。 inStudent(student+i)Score[0]。iCurNum。 } else { inCountCurNum。 //打開學(xué)生人數(shù)文件,ios::in是fstream,istream的默認(rèn)模式 if(!inCount) //文件不存在,建立該文件 { ()。 return Choice。 //當(dāng)前人數(shù)extern Student student[MaxNum]。 //檢查學(xué)號是否存在,存在返回序號,不存在返回1void PrintTitle()。 //顯示一個學(xué)生的重載函數(shù)void SortID()。 //刪除一個學(xué)生void SortName()。 //數(shù)據(jù)文件初始化void Add()。}。五、程序清單 //結(jié)構(gòu)定義文件// ifndef STUDENT_Hdefine STUDENT_Hstruct Student{ char No[9]。 char Gender[7]。 //刪除一個學(xué)生信息void Query()。 //修改學(xué)生基本信息void PrintTitle( )。 //顯示一個學(xué)生信息void SortID( )。 //輸入選項void Init( )。三、模塊(函數(shù))的劃分,各模塊(函數(shù))的功能void main( ) //主函數(shù)int EnterChoice( )。 //顯示全部學(xué)生信息void DisplayOne(Student *)。 //輸入學(xué)生學(xué)號,檢查應(yīng)該學(xué)號是否有記錄void Upstudent( )。 //修改學(xué)生成績void Delete()。 char Name[9]。2) 枚舉類型:enum Choices{ADD=1,UPDATE,DELET
點擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1