std::map<int, std::string> map; map[1] = "hello world"; auto iter = map.find(0); printf("%s", iter->second.c_str());