How to store a number of strings in a hashmap

i need to know how to store a number of strings in a hashmap and then how to map them with another string, this query is not related to this question but i wanted to know, in general.

Hey @pragyachoudhary1111
If you want to map a few different strings to a string, there are two ways in which you can do it

  1. Make a map<string, string>m and store all the strings you want to map to a particular string as different entries.
  2. Make a map<vector, string>m and store all the strings you want to map to a particular string in a vector, and make an entry of the vector in the map.

Now deciding which one of the above methods to choose would depend upon the requirement in the question.