Another experiment with the Standard Template Library (STL). This time we are taking a look at map. Map is a Sorted Pair Associative Container (a mouthful). The pair is -- const Key, Data --, where Key has to be unique. It is Key that is sorted. In this code sample a simple word association is shown. The map is loaded, displayed, and searched.
vmars commented: cool +2
LastMitch commented: Thanks for sharing! +12
vb6exp32 commented: i greatly appreciate the "play a MIDI voice" snippet provided.. it worked perfect in my dev c ++ +0
Metalpeich commented: Great solution, worked perfectly +0
compzets commented: gud +0
Lingson commented: Thanks for the advice! +1
Nick Evan commented: excellent +25
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
stvrich commented: tanx 4 lking in as I struggled to get it "going" +1
mahela007 commented: A short ,clear post. .I deal for forums +1
sneekula commented: finally an actual example +8
scru commented: Nice use of generators +6