class Course
{
};
class Math: public Course
{
};
class Physics: public Course
{
};
class Score
{
public:
Course course;
float value;
};
class Student
{
protected:
char name[20];
int age;
int male;
Score scores[10]; //
}:
ScoreManager
{
public:
void AddStu();
void RemoveStu();
void PrintStuScore(Course c);
void SortStuByAve(); //按平均分排序
void SortStuByCourse(); //按某科成绩排序
float GetCourseAve(Course c); //统计课程成绩的平均分
protected:
vector
};
写了几句话百度私信发给你了。