map in c++ insert value by user code example Example: c++ map insert mymap.insert ( std::pair<char,int>('a',100) );