minoritypartycongressperson.cpp
来自「设计模式实例: 工厂方法(Factory)源代码)」· C++ 代码 · 共 24 行
CPP
24 行
// MinorityPartyCongressPerson.cpp: implementation of the MinorityPartyCongressPerson class.
//
//////////////////////////////////////////////////////////////////////
#include "MinorityPartyCongressPerson.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
MinorityPartyCongressPerson::MinorityPartyCongressPerson(char* pp)
{
strcpy( m_Party, pp );
}
MinorityPartyCongressPerson::~MinorityPartyCongressPerson()
{
}
void MinorityPartyCongressPerson::PartyLine()
{
cout << m_Party << ": hear no evil" << endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?