create a dictionary cpp

Solutions on MaxInterview for create a dictionary cpp by the best coders in the world

showing results for - "create a dictionary cpp"
Clelia
02 Feb 2016
1  // The equivalent to python dictionaries are maps in c++
2  map<int, char> mymap; // Enter required types and name
3  mymap[1] = 'a';
4  mymap[4] = 'b';
5  cout << "my map is -" << mymap[1] << " " < <mymap[4] << endl;