-
Employee
创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。
(Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)
- 2013-11-27 11:43:06下载
- 积分:1
-
WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CLis...
WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CListenSocket,CClientSocket构成的。 (所有关于类的说明在代码中有) 下面简单介绍一下程序流程: 主程序调用CListenSocket类的对象来进行对Socket的监听,当收到请求时调用主程序的函数来处理相应的连接,把Socket放进队列中。 对于Socket的接收数据和断开连接是由消息来触发的,是通过调用基类CSocket中的虚函数重载来处理的。 注:详细的过程,在程序代码中均有注释!-Winsock server sample program note that the procedure was based on dialog programming, using one-to-many is the way to connect. The entire process by CServerDlg, CServerApp, CListenSocket, constitute the CClientSocket. (All categories on the note in code) The following outlines procedures have : main program called CListenSocket category to the target of the listening socket, when the call request is received when the main program functions to the corresponding connections, socket into the queue. Socket for the reception of data and disconnected from the news to trigger, by calling the base class CSocket the virtual function to handle the heavy load. Note : Details of the procedure code have Notes!
- 2022-01-26 07:55:19下载
- 积分:1
-
jiugongpaixu
九宫图排序,实现记录功能,中间为空,沿四周分布(Figure Jiugong sort of record function, the middle is empty, surrounded by distribution along the)
- 2011-05-26 19:02:21下载
- 积分:1
-
aa
说明: VC++与WINDOW编程。是一部很好的电子书(VC++ AND WINDOW STUDY)
- 2010-03-12 14:29:29下载
- 积分:1
-
Borland C++ Builder制作有论证的邮件发送程序,同时还增加了附件功能...
Borland C++ Builder制作有论证的邮件发送程序,同时还增加了附件功能-Borland C Builder has produced proof of mailing procedure, and also increased the attachments
- 2023-02-26 17:00:03下载
- 积分:1
-
电子像册(java)
用JAVA编写的电子像册。比较使用!用记事本打开方式就可以打开了!(prepared using JAVA electronic photo album. Compared to use! Use Notepad to open the way can be opened!)
- 2005-01-02 20:46:25下载
- 积分:1
-
myssh
ssh实现用户注册登录案例,主要是展现ssh的结合使用。(ssh user login and register cases, mainly to show the combined use of ssh.)
- 2011-04-26 14:29:46下载
- 积分:1
-
一个简易的图片浏览器
windows下MFC程序实现的图片浏览器(Picture Browser Implemented by MFC Program under Windows)
- 2019-03-17 00:10:23下载
- 积分:1
-
记数统计功能,全面记载浏览者的ip,操作系统,浏览时间等参数
记数统计功能,全面记载浏览者的ip,操作系统,浏览时间等参数-counting statistics functions, comprehensive records of surfers ip, operating systems, time and other parameters View
- 2022-01-26 07:31:41下载
- 积分:1
-
局域网点对点语音聊天程序,只要输入对方的IP地址就可以聊天了...
局域网点对点语音聊天程序,只要输入对方的IP地址就可以聊天了-LAN peer-to-peer voice chat program, as long as the importation of each other"s IP addresses on a chat
- 2022-11-10 18:15:03下载
- 积分:1