文件名称:teacher
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.05mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
分别定义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/
211/1.cpp
211/211.dsp
211/211.dsw
211/211.ncb
211/211.opt
211/211.plg
211/Debug/
211/Debug/1.obj
211/Debug/211.exe
211/Debug/211.ilk
211/Debug/211.pch
211/Debug/211.pdb
211/Debug/vc60.idb
211/Debug/vc60.pdb
211/1.cpp
211/211.dsp
211/211.dsw
211/211.ncb
211/211.opt
211/211.plg
211/Debug/
211/Debug/1.obj
211/Debug/211.exe
211/Debug/211.ilk
211/Debug/211.pch
211/Debug/211.pdb
211/Debug/vc60.idb
211/Debug/vc60.pdb
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.