魔鬼精灵
摘要: 一个自己实现的Vector(只能处理基本类型数据) string 类型不行 bool char int double float long long 等基本s类型可用 使用模板类实现。底层为数组实现。 dvector.h dvector.cpp 阅读全文
posted @ 2020-01-02 17:36 魔鬼精灵 阅读(319) 评论(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 魔鬼精灵 阅读(525) 评论(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 魔鬼精灵 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 源地址 https://www.ev0l.art/index.php/archives/20/ 备忘录模式 在一个类内部记录另一个类的快照状态的模式。可以再合适的时候跳回复用 设计备忘录的三大步骤: 3.操作记录的类,记录节点状态,设置节点状态,显示节点状态 策略模式 策略模式针对一组算法,将每一个 阅读全文
posted @ 2020-01-02 14:15 魔鬼精灵 阅读(777) 评论(2) 推荐(1) 编辑
摘要: 源地址 https://www.ev0l.art/index.php/archives/20/ 备忘录模式 在一个类内部记录另一个类的快照状态的模式。可以再合适的时候跳回复用 设计备忘录的三大步骤: 3.操作记录的类,记录节点状态,设置节点状态,显示节点状态 策略模式 策略模式针对一组算法,将每一个 阅读全文
posted @ 2020-01-02 14:05 魔鬼精灵 阅读(405) 评论(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 魔鬼精灵 阅读(259) 评论(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 魔鬼精灵 阅读(135) 评论(0) 推荐(0) 编辑