C++设计模式——状态模式

前言html 在实际开发中,咱们常常会遇到这种状况;一个对象有多种状态,在每个状态下,都会有不一样的行为。那么在代码中咱们常常是这样实现的。ios typedef enum tagState { state, state1, state2 }State; void Action(State actionState) { if (actionState ==
相关文章
相关标签/搜索