Code Snippet : C++ map 映射容器的使用样例
标签:ret begin code val ras value read ios r++
#include string>
#include
运行结果
------ Test1: Read All -----
1:value1
2:value2
------ Test2: Insert Value pair -----
1:value1
2:value2
3:value3
------ Test2: Insert Value map:value_type -----
1:value1
2:value2
3:value3
4:value4
------ Test2: Insert Value array[] -----
1:value1
2:value2
3:value3
4:value4
6:value6
------ Test2: Insert Value array[] override -----
1:value1
2:value2
3:value3
4:value4
6:value6
------ Test3: Find Value -----
Sorry,5 not found
------ Test4: Erase Value -----
1:value1
2:value2
3:value3
6:value6
------ Test5: Check Insert Result fail -----
result is 0
1:value1
2:value2
3:value3
6:value6
------ Test5: Check Insert Result success -----
result is 1
1:value1
2:value2
3:value3
6:value6
7:value7
------ Test End -----
Code Snippet : C++ map 映射容器的使用样例
标签:ret begin code val ras value read ios r++
原文地址:https://www.cnblogs.com/yqmcu/p/13335065.html
评论