// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <map>
#include <string>

using namespace std;

int main()
{
   map<string,int> m;
   m.insert(make_pair("A",1));
   m.insert(make_pair("BB",2));
   m.insert(make_pair("CCC",3));
   cout << m["BB"] << endl;
   return 0;
}
