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)这样的字样

posted @ 2017-06-29 21:59  kilen  阅读(148)  评论(0编辑  收藏  举报