23种设计模式之解释器模式(行为型,10 Interpreter,c++实现)

代码实现: #include <iostream> #include <string> using namespace std; class Context { public: Context() { this->setNum(0); } void setNum(int num) { this->num = num; } int getNum() { return this->num; } pri
相关文章
相关标签/搜索