上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 91 下一页
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 #include<string> 7 8 9 /* 10 5.2 常用查找算法 11 阅读全文
posted @ 2021-05-13 11:47 yub4by 阅读(76) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 7 8 /* 9 5 STL常用算法 10 11 算法主要是由头文件<algorith 阅读全文
posted @ 2021-05-12 20:26 yub4by 阅读(173) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<functional> 5 #include<vector> 6 #include<algorithm> 7 8 9 /* 10 4.3 内建函数对象 阅读全文
posted @ 2021-05-12 19:48 yub4by 阅读(45) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 7 8 /* 9 4.2 谓词 10 11 4.2.1 谓词概念 12 返回bool类 阅读全文
posted @ 2021-05-12 19:47 yub4by 阅读(56) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<string> 5 6 7 /* 8 4.1 函数对象 9 10 4.1.1 函数对象概念 11 12 概念: 13 重载函数调用操作符的类,其对象常 阅读全文
posted @ 2021-05-12 19:46 yub4by 阅读(45) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdlib> using namespace std; #include<vector> #include<string> #include<map> #include<ctime> #define CEHUA 0 #define MEIS 阅读全文
posted @ 2021-05-12 16:03 yub4by 阅读(97) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<map> 5 6 7 /* 8 3.9.5 map查找和统计 9 10 find(key); //查找key是否存在,若存在,返回该键的元素的迭代器; 阅读全文
posted @ 2021-05-12 15:04 yub4by 阅读(165) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<map> 5 6 7 /* 8 3.9.3 map大小和交换 9 10 size(); //返回容器中元素的数目 11 empty(); //判断容器 阅读全文
posted @ 2021-05-12 15:03 yub4by 阅读(198) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<map> 5 6 7 /* 8 3.9 map/multimap容器 9 10 3.9.1 map基本概念 11 12 简介: 13 map中所有元素 阅读全文
posted @ 2021-05-12 15:02 yub4by 阅读(142) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<set> 5 #include<string> 6 7 8 /* 9 3.8.8 set容器的排序 10 11 学习目标:set容器默认排序规则为从小 阅读全文
posted @ 2021-05-12 11:19 yub4by 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 91 下一页