摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 template 9 class IocContainer { 10 public: 11 IocContainer(void){} 12 ~IocContainer() 13 ... 阅读全文
posted @ 2019-06-19 15:23 null_123 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 字典:键值对应 类似json ```d = {'1' : 2, "3": 4}d["5"] = 6 #插入新的键值if ('1' in d):#in方法a56爆大奖在线娱乐判断该键是否在列表中 print("true")else: print("flase")value = d.get('1') #get()方法传 阅读全文
posted @ 2019-03-06 17:25 null_123 阅读(142) 评论(0) 推荐(0) 编辑
摘要: QString InfoBase::JsonToString(const QJsonObject& json) const { return QString(QJsonDocument(json).toJson(QJsonDocument::Compact)); } QJsonObject InfoBase::StringToJson(const QString& str) const { ... 阅读全文
posted @ 2019-03-06 10:45 null_123 阅读(4180) 评论(0) 推荐(0) 编辑
摘要: 解封装? av_register_all()? avformat_network_init()? avformat_open_input(...)? avformat_find_stream_info(...)? av_find_best_stream(...)? AVFormatContext A 阅读全文
posted @ 2019-03-05 14:07 null_123 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 包含头文件<iterator> 迭代器类似C++ 中的指针,有 ++ 运算,用 *(解引用算符,deference) 或 -> 或.算符来访问容器中的元素, STL 的迭代器实现了设计模式中的” 迭代器模式”。 一共支持五种迭代器:输入迭代器 (*iter 解引用后只能用作右值)、输出迭代器 (*i 阅读全文
posted @ 2019-03-01 22:41 null_123 阅读(274) 评论(0) 推荐(0) 编辑