登录
首页 » c++ » 定义一个员工类Employee,有数据成员姓名,编号。定义一个销售员继承自员工类Sales,工资为销售额的提成10%,定义一个经理类Manager,固定工资8000,定义一个销售经理类,继承自销售员类

定义一个员工类Employee,有数据成员姓名,编号。定义一个销售员继承自员工类Sales,工资为销售额的提成10%,定义一个经理类Manager,固定工资8000,定义一个销售经理类,继承自销售员类

于 2022-07-08 发布 文件大小:253.43 kB
0 129
下载积分: 2 下载次数: 1

代码说明:

#include #include using namespace std; #define K 0.1 class Employee { public:     string name;     string number;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • migong
    迷宫算法,1代表可以通过,0代表墙壁,自动找寻路线(Maze algorithm, 1 can pass 0 for the walls, automatically find routes)
    2011-06-11 17:13:39下载
    积分:1
  • Date
    用整数存储私有成员:年、月和日。为类提供构造函数,能够对各成员进行初始 化,但出现错误的初值时, 成员为2000-1-。也可以不在不提供任何初值的情况 下日期为2000-1-1。另外可以用一个Date 对象进行初始化,成员函数应实现以 下功能: (1) 对所有成员一次性赋值,也能对某个成员单独赋值,能够一次返回所有成 员的值,也能单独返回某个成员的值 (2) 可以按照mm-dd-yyyy 格式输出日期。 (3) 有成员函数nextDay(),用于将日期增加一天(Integer stored the private Members: year, month, and day. Class provides a constructor to initialize the members, but the wrong initial value, members 2000-1-. The date can also be not the case does not provide any initial value 2000-1-1. Also available on a Date object is initialized, the member function should achieve the following functions: (1) all members of the one-time assignment, can also be a member of a separate assignment, to return once the value of all the members, but also separate return a The members of the value (2) according to the date of mm-dd-yyyy format output. (3) member function nextDay () for additional day date)
    2012-11-22 11:18:18下载
    积分:1
  • OmniVision
    说明:  SCCB(串行摄像机控制总线)总线协议是实现OmniVision系列图像传感器初始化,并保证其正常工作的前提。此文在结合SCCB总线协议的基础上详细介绍了在DSP中通过HPI(主机接口)编程实现SCCB总线协议的思路和方法。(err)
    2008-11-25 16:37:31下载
    积分:1
  • measure
    可以在使用此代码实现测量距离,主要是ArcEngine C#实现(Measuring the distance, mainly ArcEngine C# implementations can use this code)
    2012-10-19 15:52:40下载
    积分:1
  • CANreice
    比RS485更精准的can接受通信,基于128单片机开发,对于有志于128通信方面的读者有一定参考价值 (More accurate than the RS485 can accept the communication, based on 128 microcontroller development, communications for aspiring 128 readers have a certain reference value)
    2013-08-31 11:23:23下载
    积分:1
  • Renci.SshNet
    ssh .net 官方下载版本官方下载版本
    2020-07-10 16:08:55下载
    积分:1
  • 傅里叶变换与反变换
    说明:  c语言实现傅里叶变换,可用于各种谱分析,也可用于dsp下位机的处理(Fourier transform is implemented in C language and can be used in various spectral analysis)
    2020-06-16 03:00:01下载
    积分:1
  • qt用户登录验证代码
    QT用户登录验证代码,可方便移植到需要用户验证的嵌入式产品中,视频监控器的一部分源代码
    2022-02-24 23:44:14下载
    积分:1
  • pwm
    matlab仿真PWM控制直流电机,仿真曲线还可以(matlab simulation of the PWM control of DC machine, the simulation curve can also)
    2012-07-04 22:40:44下载
    积分:1
  • 蓝牙扩展实验1 LY-BL001 HC05蓝牙串口模块实验
    PC端配置模块,手机端连接模块STM32串口配置模块串口通信hc05蓝牙模块中的关于stm32的实验,非常适合新手练习学习和编程(hc05 Bluetooth module experiments on stm32, very suitable for beginners to learn and exercise program)
    2023-03-29 03:20:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载