person.cpp

来自「一个开源的心电图测量仪驱动和应用软件,可记录」· C++ 代码 · 共 49 行

CPP
49
字号
// Person.cpp: implementation of the CPerson class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ECG_1.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 + =
减小字号Ctrl + -
显示快捷键?