📄 person.h
字号:
// Person.h: interface for the CPerson class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PERSON_H__3B29BCF6_F82C_479E_ABDE_C35237EB8B83__INCLUDED_)
#define AFX_PERSON_H__3B29BCF6_F82C_479E_ABDE_C35237EB8B83__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "pub_def.h"
#include "afxtempl.h"
class CPerson : public CObject
{
public:
CPerson();
virtual ~CPerson();
DECLARE_SERIAL(CPerson)
public:
void SetSocialNO(CString strNO);
void SetName(CString strName);
void SetSex(SEX_TYPE SexType);
void SetAge(int nAge);
CString GetSocialNO();
CString GetName();
SEX_TYPE GetSex();
int GetAge();
void Serialize(CArchive& ar);
private:
int m_nAge;
CString m_strName;
SEX_TYPE m_Sex;
CString m_strSocialNO;
};
typedef CArray<CPerson*, CPerson*> PersonArray;
#endif // !defined(AFX_PERSON_H__3B29BCF6_F82C_479E_ABDE_C35237EB8B83__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -