摘要:
#ifndef __STRATEGY_MODEL__#define __STRATEGY_MODEL__//策略基类class Operation{public: double m_nFirst; double m_nSecond; virtual double getResult() { double dResult = 0; return dResult; }};//策略具体类 加法类class AddOperation : public Operation{public: AddOperation(int a, int b)... 阅读全文