C++ STL之map的簡單使用

map是容器之一,有映照的功能,也採用紅黑樹,自動按照鍵值排序。 可以根據下標訪問等,接下來用一個程序將這些函數串起來進行展示。 文章下方有multimap的鏈接。 代碼: /* Author:YuBo Date:2018/2/6 map */ #include<iostream> #include<string> #include<map> using namespace std; map<st
相關文章
相關標籤/搜索