?? republicanfactory.cpp
字號:
// RepublicanFactory.cpp: implementation of the RepublicanFactory class.
//
//////////////////////////////////////////////////////////////////////
#include "RepublicanFactory.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
RepublicanFactory::RepublicanFactory()
{
}
RepublicanFactory::~RepublicanFactory()
{
}
Officer* RepublicanFactory::CreateOfficer(OfficialType type)
{
switch(type)
{
case PresidentType:
m_pProtoType[type]=new President("Republic");
break;
case AttorneyGeneralType:
m_pProtoType[type]=new AttorneyGeneral("Republic");
break;
case MinorityPartyCongressPersonType:
m_pProtoType[type]=new MinorityPartyCongressPerson("Republic");
break;
default:
break;
}
return m_pProtoType[type];
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -