I was told that "indexing a map 'inserts' the key into the map if it is not already present, if 'vermeer' is not present, this form of search enters it into the map with an occurence count of zero". <Essencial C++> stanley lippman, pp91.Code:map<string,int> dict;
dict["we"]++;
cout<< dict["vermeer"];
What does this mean? I think before cout<< dict["vermeer"]; the "vermeer" entry's value is already 0.