Check out example codes for "create a dictionary cpp". It will help you in understanding the concepts better.
Code Example 1
// The equivalent to python dictionaries are maps in c++ map<int, char> mymap; // Enter required types and name mymap = 'a'; mymap = 'b'; cout << "my map is -" << mymap << " " < <mymap << endl;
Learn ReactJs, React Native from akashmittal.com