源码简介: |
定义一个人员类CPerson,包括数据成员:姓名,编号,性别和用于输入/输出的成员函数。在此基础上派生出学生类CStudent(增加成绩)和教师类CTeacher(增加教龄),并实现对学生和教师信息的输入/输出-Definition of a personnel class CPerson, including members of the data members: name, number, gender, and is used to input/output function. Derived on this basis the student class CStudent (increase scores) and the teachers class CTeacher (increase seniority), and input/output information on students and teachers
|