Lecture 6 - Slide 12 : 40
A map example

We show a simple example of the use of the map standard container

An example taken from The C++ Prog. Lang. (3. edition) page 483

map-2.cpp
Illustration of the map standard container.
map-3.cpp
Alternative version - using range-for for traveral of the map.
input
Sample program input.
output
Program output - as produced on the input from above.