文件名称:teacher
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.05mb
- 下载次数:
- 0次
- 提 供 者:
- on***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
分别定义Teacher(教师)类和Cadre(干部)类,采用多重继承方式由这两个类派生出新类Teacher_Cadre(教师兼干部)。要求:
(1)在两个基类中都包含姓名、年龄、性别、地址、电话等数据成员。
(2)在Teacher类中还包含数据成员title(职称),在Cadre类中还包含数据成员post(职务),在Teacher_Cadre类中还包含数据成员wages(工资)。
(3)对两个基类中的姓名、年龄、性别、地址、电话等数据成员用相同的名字,在引用这些数据成员时,指定作用域。
(4)在类体中声明成员函数,在类外定义成员函数。
(5)在派生类Teacher_Cadre的成员函数show中调用Teacher类中的display函数,输出姓名、年龄、性别、职称、地址、电话,然后再用cout语句输出职务与工资
-Are defined Teacher (teacher) class and Cadre (cadres) class multiple inheritance using classes derived from these two new classes Teacher_Cadre (teachers and cadres.) Requirements:
(1) in two base class contains the name, age, gender, address, telephone and other data members.
(2) Teacher also contains data members class title (title), in the Cadre also contains data members class post (office), in Teacher_Cadre class contains data members wages (wages).
(3) the names of the two base class, age, gender, address, telephone and other data members of the same name, in reference to these data members, specify the scope.
(4) in the class member functions declared in the body, member functions defined outside the class.
(5) in the derived class member function show Teacher_Cadre Teacher class to call display function, output name, age, gender, occupation, address, phone, and then use the output functions and wages cout statement
(1)在两个基类中都包含姓名、年龄、性别、地址、电话等数据成员。
(2)在Teacher类中还包含数据成员title(职称),在Cadre类中还包含数据成员post(职务),在Teacher_Cadre类中还包含数据成员wages(工资)。
(3)对两个基类中的姓名、年龄、性别、地址、电话等数据成员用相同的名字,在引用这些数据成员时,指定作用域。
(4)在类体中声明成员函数,在类外定义成员函数。
(5)在派生类Teacher_Cadre的成员函数show中调用Teacher类中的display函数,输出姓名、年龄、性别、职称、地址、电话,然后再用cout语句输出职务与工资
-Are defined Teacher (teacher) class and Cadre (cadres) class multiple inheritance using classes derived from these two new classes Teacher_Cadre (teachers and cadres.) Requirements:
(1) in two base class contains the name, age, gender, address, telephone and other data members.
(2) Teacher also contains data members class title (title), in the Cadre also contains data members class post (office), in Teacher_Cadre class contains data members wages (wages).
(3) the names of the two base class, age, gender, address, telephone and other data members of the same name, in reference to these data members, specify the scope.
(4) in the class member functions declared in the body, member functions defined outside the class.
(5) in the derived class member function show Teacher_Cadre Teacher class to call display function, output name, age, gender, occupation, address, phone, and then use the output functions and wages cout statement
(系统自动生成,下载前可以参看下载内容)
下载文件列表
211
...\1.cpp
...\211.dsp
...\211.dsw
...\211.ncb
...\211.opt
...\211.plg
...\Debug
...\.....\1.obj
...\.....\211.exe
...\.....\211.ilk
...\.....\211.pch
...\.....\211.pdb
...\.....\vc60.idb
...\.....\vc60.pdb
...\1.cpp
...\211.dsp
...\211.dsw
...\211.ncb
...\211.opt
...\211.plg
...\Debug
...\.....\1.obj
...\.....\211.exe
...\.....\211.ilk
...\.....\211.pch
...\.....\211.pdb
...\.....\vc60.idb
...\.....\vc60.pdb