📄 person.cpp
字号:
// Person.cpp: implementation of the CPerson class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Person.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CPerson,CObject,1);
CPerson::CPerson()
{
//initialize variables to be empty before use
sEGN = "";
Birth_Date.SetDate(0000,00,00);
sName_1 = "";
sName_2 = "";
sName_3 = "";
Sex = "";
sAddress = "";
sPhone = "";
}
CPerson::~CPerson()
{
}
void CPerson::Serialize(CArchive& ar)
{
CObject::Serialize(ar);
if(ar.IsStoring())
ar<<sEGN<<Birth_Date<<sName_1<<sName_2<<sName_3<<
Sex<<sAddress<<sPhone;
else
ar>>sEGN>>Birth_Date>>sName_1>>sName_2>>sName_3>>
Sex>>sAddress>>sPhone;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -