person.h
来自「关于使用VC编程的代码」· C头文件 代码 · 共 44 行
H
44 行
// 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 + =
减小字号Ctrl + -
显示快捷键?