欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

employee.cpp

由吕军等人著的《Visual C++ 与面向对象程序设计教程》课后习题的源代码
CPP
字号:
// Employee.cpp: implementation of the CEmployee class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "My.h"
#include "Employee.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CEmployee::CEmployee()
{

}

CEmployee::~CEmployee()
{

}

CEmployee& CEmployee:: operator=(CEmployee& e)
{
	m_strName = e.m_strName;
	m_nSex = e.m_nSex;
	m_tBirthdate = e.m_tBirthdate;
	m_bMarried = e.m_bMarried;
	m_strDept = e.m_strDept;
	m_strPosition = e.m_strPosition;
	m_fSalary = e.m_fSalary;
	return *this;
}

⌨️ 快捷键说明

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