📄 person.cpp
字号:
// Person.cpp: implementation of the CPerson class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CPerson, CObject, VERSIONABLE_SCHEMA | 1)
CPerson::CPerson()
{
}
CPerson::~CPerson()
{
}
void CPerson::Serialize(CArchive &ar)
{
// 对象序列化保存
if (ar.IsStoring())
{
ar << m_strName << m_strSex << m_nAge << m_strTel;
}
else
{
ar >> m_strName >> m_strSex >> m_nAge >> m_strTel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -