🌈 搜索
📅  最后修改于: 2022-03-11 14:44:58.610000             🧑  作者: Mango
#include #include int main() { std::map myMap; myMap["one"] = 1; myMap["two"] = 2; myMap["three"] = 3; for ( const auto &myPair : myMap ) { std::cout << myPair.first << "\n"; } }