C++ Using the standard template library (STL) map example
This program demonstrates using the standard template library (STL) map it reads pairs of data and inserts them into a map then it reads names and looks those names up in the map
A map stores a collection of pairs For example, consider this collection of data: Tom is 42 years old Sally is 20 years old Fred is 21 years old We can think of this data as three “pairs” A map stores these pairs. For each key (a name in the above example) there is a single value
program can be found <a href="http://erunways.com/c-using-the-standard-template-library-stl-map-example/">here</a>