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.
How to store a number of strings in a hashmap
Hey @pragyachoudhary1111
If you want to map a few different strings to a string, there are two ways in which you can do it
- Make a map<string, string>m and store all the strings you want to map to a particular string as different entries.
- 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.