Answers for "create a dictionary cpp"

C++
3

create a dictionary cpp

// The equivalent to python dictionaries are maps in c++
  map<int, char> mymap; // Enter required types and name
  mymap[1] = 'a';
  mymap[4] = 'b';
  cout << "my map is -" << mymap[1] << " " < <mymap[4] << endl;
Posted by: Guest on February-26-2020

Code answers related to "create a dictionary cpp"

Browse Popular Code Answers by Language