摘要:
状态模式包含如下角色: Context: 环境类 State: 抽象状态类 ConcreteState: 具体状态类 2)适用场景: a)状态模式主要解决的是当控制一个对象状态转换的条件表达式过于复杂时的情况。把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判 断逻辑简单化。(简单来说, 阅读全文
posted @ 2018-12-23 22:50
乐乐章
阅读(230)
评论(0)
推荐(0)
摘要:
1、int 2 string 法1:c++11里面的to_string 法2: 2 string 2 int https://www.cnblogs.com/gaobw/p/7070622.html 阅读全文
posted @ 2018-12-23 15:08
乐乐章
阅读(174)
评论(0)
推荐(0)
摘要:
The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 1 is read off as "on 阅读全文
posted @ 2018-12-23 14:42
乐乐章
阅读(151)
评论(0)
推荐(0)

浙公网安备 33010602011771号