how to initialize the size of a map in c++ code example
Example 1: initialize map c++
std::map<std::string, int> mapOfMarks = {
{"Riti",2},
{"Jack",4}
};
Example 2: size of map c++
map_name.size()
std::map<std::string, int> mapOfMarks = {
{"Riti",2},
{"Jack",4}
};
map_name.size()