⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 person.cpp

📁 一个开源的心电图测量仪驱动和应用软件,可记录
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -