长风破浪会有时,直挂云帆济沧海

Dream Word

博客园 首页 新随笔 联系 订阅 管理

2018年8月5日 #

摘要: std::set 不重复key 默认less排序 代码 #include <iostream> #include <set> class Person { public: Person(const std::string& name, const std::size_t nld) { Name = 阅读全文
posted @ 2018-08-05 18:36 长风II 阅读(1430) 评论(0) 推荐(0) 编辑

摘要: std::map 关联性容器 key-value存放方式 不重复key #include <iostream> #include <map> #include <string> struct Employee { Employee(){} Employee(const std::string& ws 阅读全文
posted @ 2018-08-05 18:02 长风II 阅读(189) 评论(0) 推荐(0) 编辑