摘要: #include <iostream>#include <algorithm>#include <deque> using namespace std; //二元谓词//比较两个数的大小bool absLess(int elementParam1,int elementParam2){ return 阅读全文
posted @ 2019-06-10 20:45 西北逍遥 阅读(3294) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <vector>#include <functional>#include<set> using namespace std; //一元谓词bool isEven(int elementParam){ i 阅读全文
posted @ 2019-06-10 20:25 西北逍遥 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <set> using namespace std; template<typename Container>void PrintContents(const Container& con); template<typename Contain 阅读全文
posted @ 2019-06-10 15:00 西北逍遥 阅读(162) 评论(0) 推荐(0) 编辑
摘要: template<typename Container>void PrintContents(const Container& con) { Container::const_iterator iter = con.begin(); while (iter != con.end()) { cout 阅读全文
posted @ 2019-06-10 14:40 西北逍遥 阅读(345) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <map>#include <string> using namespace std; int main(){ map<int, string> map1; multimap<int, string> multimap1; map1.inser 阅读全文
posted @ 2019-06-10 10:15 西北逍遥 阅读(1618) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string> using namespace std; int main(){ string str1("hello"); string str2("hello"); string str3("world"); if (str1 != st 阅读全文
posted @ 2019-06-10 09:20 西北逍遥 阅读(2749) 评论(0) 推荐(0) 编辑