class CStudent {
public:
struct CInfo //类的内部还可以定义类 {
int id;
string name;
};
int score;
CInfo info; //学生的其他信息
};
类的内部也可以定义类
最新推荐文章于 2021-11-02 17:28:39 发布
class CStudent {
public:
struct CInfo //类的内部还可以定义类 {
int id;
string name;
};
int score;
CInfo info; //学生的其他信息
};