map
拔丝奶糖54
许我向你看,lllll
展开
-
map函数
map函数这里有三种方法,我只学了数组,感觉功能都一样。。。 第三种:用数组方式插入数据,下面举例说明 #include <map> #include <string> #include <iostream> using namespace std; int main() { map<int, string> mapStudent; mapStudent[1] = "原创 2017-11-25 23:58:17 · 228 阅读 · 0 评论 -
map 加hash hdu 2648 Shopping
ShoppingTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3447 Accepted Submission(s): 1277Problem Description Every girl likes shopping,so原创 2017-11-27 09:34:32 · 224 阅读 · 0 评论 -
hash POJ 1200 Crazy Search
Crazy Search Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 30502 Accepted: 8433 DescriptionMany people like to solve hard puzzles some of which may lead them to madness. One原创 2017-11-27 09:41:52 · 165 阅读 · 0 评论 -
map iterator it 的用法
#include&lt;iostream&gt; #include&lt;map&gt; using namespace std; int main() { int a[5]; map&lt;int,int&gt;M; a[0]=1;M[a[0]]++; a[1]=2;M[a[1]]++; a[2]=2;M[a[2]]++; a[3]=4;M[a[3...转载 2018-07-28 22:40:52 · 2310 阅读 · 0 评论