一、问题及代码 【项目2 - 学生类】 [cpp] view plain copy class Stu //声明基类 { public: Stu(int n, string nam ); //基类构造函数 void display( ); //成员函数,输出基类数据成员