employee.cpp

来自「VC面向对象的学习教程」· C++ 代码 · 共 40 行

CPP
40
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?