Map Data Structure
Maps are made up of key-value pairs. The key acts as an identifier for the value, and both can be of any data type. Although databases are not usually built using maps, they are a good representation of maps because there is an ID (the key) and attributes (values) that correspond to it. Similar to indexing an array, It is easy to find values in a Map because as long as you have a record of the key, you have the values. This is why Maps are also called Associative Arrays. Instead of knowing an index number you can use a name, for example, to find data.
C++ has its own Map library that we will use. For the key and value we will use a pair and then put the it inside the Map so the values are mapped together.