previous
|
start
|
next
Other Standard Containers
A
map
is similar to a
vector
, but you can use another data type for the indices.
map<string, double> scores; scores["Tom"] = 90; scores["Dick"] = 86; scores["Harry"] = 100;
previous
|
start
|
next