C++ - Using map container with user input to map a string and int.

When using the map container to map key-value pairs, you have to create separate maps if one key-value pair contains a string and one is an int.

Used getline to show there is more than one way to map a key-value pair with user input.




Comments