欢迎来到天天文库
浏览记录
ID:51032180
大小:20.28 KB
页数:29页
时间:2020-03-17
《学生成绩管理系统(c++).docx》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、学生成绩管理系统(仅源代码)#include#include#include#include#defineMAX_NUM10//对象数组最大容纳人数usingnamespacestd;intpupil_num=0;intmid_stu_num=0;intuniv_stu_num=0;classStudent{public:friendclassBaseOperate;protected:stringno;stringname;stringsex;intage;intclass_infor[2];//分别存储年级和班级i
2、nttotal_grade;};classPupil:publicStudent{public:friendclassBaseOperate;protected:intenglish_grade;intmath_grade;intchinese_grade;};classMiddleSchoolStudent:publicPupil{public:friendclassBaseOperate;private:intgeography_grade;inthistory_grade;};classUniversityStudent:publicStudent{public:friendclas
3、sBaseOperate;private:intmajor_grade;intenglish_grade;inthigher_math_grade;intprogramming_grade;};Pupilpupil[MAX_NUM];MiddleSchoolStudentmid_stu[MAX_NUM];UniversityStudentuniv_stu[MAX_NUM];classBaseOperate{public:boolquery();//查询booladdRecordInPupil(stringno);booladdRecordInMid(stringno);booladdRec
4、ordInUniv(stringno);booldeleteRecordInPupil(stringno);booldeleteRecordInMid(stringno);booldeleteRecordInUniv(stringno);boolmodifyInforInPupil(stringno);boolmodifyInforInMid(stringno);boolmodifyInforInUniv(stringno);voidshow();//输出所有学生信息voidtally();//统计(能统计学生人数、总分、单科的平均分等)voidsort();//排序(可按总分和单科成绩排
5、名次)voidsave();voidread();};boolBaseOperate::query(){stringno;cout<<"请输入学号:"<>no;cout<6、tw(8)<7、<"学生类型:中学生"<
6、tw(8)<7、<"学生类型:中学生"<
7、<"学生类型:中学生"<
此文档下载收益归作者所有