how to add a value to a map cpp code example Example: c++ map insert mymap.insert ( std::pair<char,int>('a',100) );