【C++】Student类,Teacher类

1、Student类 1.私有成员score,name 2.构造函数传入score,name 3.公有函数setScore给score赋值 4.公有函数show显示成绩和名字 2、Teacher类 1.Student students[5]私有数组保存学生对象 2.公有构造函数,给students数组赋值 3.公有函数randHappyBoy()随机抽取一个学生 4.公有函数hehe()将随机抽取
相关文章
相关标签/搜索