魔鬼精灵
摘要: 一个自己实现的Vector(只能处理基本类型数据) string 类型不行 bool char int double float long long 等基本s类型可用 使用模板类实现。底层为数组实现。 dvector.h dvector.cpp 阅读全文
posted @ 2020-01-02 17:36 魔鬼精灵 阅读(329) 评论(0) 推荐(0)
摘要: 知识点1 转载自 https://www.ev0l.art/index.php/archives/9/ - Linux 下编译 带<thread> 的CPP需要加上 -pthread 编译选项。例如: - QT Creator 编译带<thread>的CPP有BUG,暂时不知道怎么去除! 代码1 知 阅读全文
posted @ 2020-01-02 14:17 魔鬼精灵 阅读(541) 评论(0) 推荐(0)
摘要: STL的概念 源地址 https://www.ev0l.art/index.php/archives/15/ <li> Iterator (迭代器)<li> Container (容器) array<li> Alogrithm (算法)<li> Adapters (配接器) 用来实现容器之间的转接 阅读全文
posted @ 2020-01-02 14:16 魔鬼精灵 阅读(864) 评论(0) 推荐(0)
摘要: 源地址 https://www.ev0l.art/index.php/archives/20/ 备忘录模式 在一个类内部记录另一个类的快照状态的模式。可以再合适的时候跳回复用 设计备忘录的三大步骤: 3.操作记录的类,记录节点状态,设置节点状态,显示节点状态 策略模式 策略模式针对一组算法,将每一个 阅读全文
posted @ 2020-01-02 14:15 魔鬼精灵 阅读(798) 评论(2) 推荐(1)
摘要: 源地址 https://www.ev0l.art/index.php/archives/20/ 备忘录模式 在一个类内部记录另一个类的快照状态的模式。可以再合适的时候跳回复用 设计备忘录的三大步骤: 3.操作记录的类,记录节点状态,设置节点状态,显示节点状态 策略模式 策略模式针对一组算法,将每一个 阅读全文
posted @ 2020-01-02 14:05 魔鬼精灵 阅读(430) 评论(0) 推荐(0)
摘要: STL的概念 源地址 https://www.ev0l.art/index.php/archives/15/ <li> Iterator (迭代器)<li> Container (容器) array<li> Alogrithm (算法)<li> Adapters (配接器) 用来实现容器之间的转接 阅读全文
posted @ 2020-01-02 13:59 魔鬼精灵 阅读(273) 评论(0) 推荐(0)
摘要: 知识点1 转载自 https://www.ev0l.art/index.php/archives/9/ - Linux 下编译 带<thread> 的CPP需要加上 -pthread 编译选项。例如: - QT Creator 编译带<thread>的CPP有BUG,暂时不知道怎么去除! 代码1 知 阅读全文
posted @ 2020-01-02 13:56 魔鬼精灵 阅读(157) 评论(0) 推荐(0)