Could you tell me how I can write a multidimensional map. For two-dimensional display, I did the following:
map<string, int> Employees
Employees["person1"] = 200;
I tried to use something like the following for 3d matching.
map<string, string, int> Employees;
Employees["person1", "age"] = 200;
Could you tell me the right way to do this?
and is there a way to initialize all map elements to 0? As in the array, we can sayint array[10]={0};
source
share