Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #dictionary #cpp
ADD COMMENT
Topic
Name
3+2 =