pex12_4.cpp

来自「数据结构C++代码,经典代码,受益多多,希望大家多多支持」· C++ 代码 · 共 32 行

CPP
32
字号
#include <iostream.h>
#pragma hdrstop

#include "employee.h"	// include employee hierarchy
 
void main()
{
	// declare a salaried and a temporary employee
	SalaryEmployee RegEmp("Steve Howard", "234678901",2500);
	TempEmployee TempEmp("Part Time Sam","896543217",5.00,50);
	
	// print the information for each employee
	RegEmp.PrintEmployeeInfo();
	cout << endl << endl;
	TempEmp.PrintEmployeeInfo();
}

/*
<Run>

Name: Steve Howard
SSN:  234678901
Status: salaried employee
Salary: 2500


Name: Part Time Sam
SSN:  896543217
Status: temporary employee
Earnings: 250
*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?