contact.cpp

来自「一个用VC++编写的连接数据库的电话本 比较简单 大家参考一下」· C++ 代码 · 共 42 行

CPP
42
字号
// Contact.cpp: implementation of the CContact class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AddressBookDB.h"
#include "Contact.h"

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

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

CContact::CContact()
{

}

CContact::~CContact()
{

}

CContact::CContact(CContact &contact){
	this->m_id=contact.m_id;
	this->m_name=contact.m_name;
	this->m_gender=contact.m_gender;
	this->m_phonenumber=contact.m_phonenumber;
}

CContact::operator =(CContact &contact){
	this->m_id=contact.m_id;
	this->m_name=contact.m_name;
	this->m_gender=contact.m_gender;
	this->m_phonenumber=contact.m_phonenumber;
}

⌨️ 快捷键说明

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