C++ Maps. Maps are a collection of key value pairs. Each key is mapped to a value. Keys must be unique in a map, while values do not have to be unique.
For example, a dictionary is a map (as named in Python), as the keys would be vocabulary words, and the values would be definitions/meanings.
In this video you will learn how to add and update a key value pair, iterate through the key value pairs in the map, and remove key value pairs from the map. You will also learn about the unordered_map, and multimap. A C++ map is in sorted order, whereas in other languages, a map may not be sorted.
If you need to review these topics:
Pair: https://youtu.be/FfJcYL-wsoM
Set: https://youtu.be/nfKVyv_up34
Iterator: https://youtu.be/b39nuYYNtnQ
Vector: https://youtu.be/OGQQK-hmOpE
C++ Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE
Github Repo for C++ Code:
https://github.com/ImKennyYip/cpp
Install C++ with VS Code:
https://youtu.be/DMWD7wfhgNY
Subscribe for more coding tutorials !