摘要: me(v): mapped Exp-Golomb-coded syntax element with the left bit first 映射的指数哥伦布码编码语法元素,左位在先se(v): signed integer Exp-Golomb-coded syntax element with t 阅读全文
posted @ 2024-01-25 16:38 泽良_小涛 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-01-22 09:21 泽良_小涛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 5 //访问者模式:核心叫做双重分发:两个多态:accept,visit 6 7 class XiaoMi; 8 class HuaWei; 9 class Oppo 阅读全文
posted @ 2024-01-15 13:56 泽良_小涛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <stdio.h> 5 using namespace std; 6 7 //抽象的表达式对象以及Context对象 8 //用于保存计算的中间结果以及当 阅读全文
posted @ 2024-01-12 10:17 泽良_小涛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 #include <map> //用户名,用户的下载 4 using namespace std; 5 6 class DownloadManager; 7 class DownState { 8 public: 阅读全文
posted @ 2024-01-03 11:48 泽良_小涛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; class Colleague; class Mediator { public: //对象在自身改变的情况下,通知Mediator进行变更 //让我们Mediator这个总线,负责 阅读全文
posted @ 2023-12-26 16:04 泽良_小涛 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; class OriginalWord; class Memento { public: Memento(string strWord):m_strWord(strWord){} pr 阅读全文
posted @ 2023-12-25 14:49 泽良_小涛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <sstream> using namespace std; template <class T> string MyConvertToString(T value) { stringstream ss; 阅读全文
posted @ 2023-12-22 14:21 泽良_小涛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> using namespace std; class Light { public: void on() { cout << "灯亮了" << endl; } void off() { cout << "灯灭了" << en 阅读全文
posted @ 2023-12-20 15:44 泽良_小涛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、代码示例 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 using namespace std; 5 6 ///抽象一个Subject主题 7 ///观察者 8 class Observer { 9 public: 阅读全文
posted @ 2023-12-13 16:18 泽良_小涛 阅读(2) 评论(0) 推荐(0) 编辑