officer.h
来自「设计模式实例: 远行(ProtoType)模式源代码」· C头文件 代码 · 共 38 行
H
38 行
// Officer.h: interface for the Officer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OFFICER_H__90F13E78_77DD_43C3_AF6F_A43986EBC4BE__INCLUDED_)
#define AFX_OFFICER_H__90F13E78_77DD_43C3_AF6F_A43986EBC4BE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <iostream.h>
#include <string.h>
enum OfficialType
{
NoneType,
PresidentType=1,
AttorneyGeneralType,
MinorityPartyCongressPersonType
};
class Officer
{
public:
Officer();
virtual ~Officer();
virtual void PartyLine() = 0;
virtual Officer* Clone();
protected:
char m_Party[20];
};
#endif // !defined(AFX_OFFICER_H__90F13E78_77DD_43C3_AF6F_A43986EBC4BE__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?