c++ map容器用法

map容器

map:是一种键值对的容器,特点,查找非常的快,元素不能重复。
使用之前#include ,map与python中的字典有异曲同工之妙。
话不多说,直接代码调试。


map  mapp;
    cout<::iterator itor1,itor2;
    itor1=mapp.begin();
    itor2=mapp.end();
    cout<first;
        char v=itor1->second;
        cout<

你可能感兴趣的:(c++ map容器用法)