定义一个学生类Student,包括3个数据成员:学号id,姓名name,分数score;两个静态数据成员:总分total和学生人数count;带参数的构造函数用来初始化对象,成员函数ChangeScore用来修改分数,静态成员函数GetAverage用来打印计算得到的平均分
我的第一篇博客
C++学习记录
#include <iostream>
#include <string>
using namespace std;
class Student
{
public:
Student(int id,string name,double score):id(id),name(name)