typedef map <int, string> MAP_INT_STRING; MAP_INT_STRING mapIntToString; mapIntToString.insert (MAP_INT_STRING::value_type (3, “Three”)); I have only found examples where the values are inserted into the map through the source code. I would like to know how to allow a user do so as the program is running. I image this would involve some sort of for loop, but I am not certain how to set it up.