首页 > 代码库 > C++ 基础 杂类
C++ 基础 杂类
1、set: 基本上跟map是相同(只有一个键),set是key-value 放在一起,map 是分开的,既然都加key ,所以set<> 的内容不可能有重复的情况出现
example:
set<int> si;
si.insert(1);
si.insert(2);
si.insert(1);
cout << " 1 出现的次数 :" << si.count(1); ----> 1 出现的次数:1
2、批量修改为当前系统时间命令 touch `find ./* -name ‘*‘`,在编译过程中出现 (has modification time 23050 s in the future)这样的字样
C++ 基础 杂类
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。