map<string,int> m; int main() { m["123"] = 1123; cout<<m["123"]<<endl; return 0; } 转载于:https://www.cnblogs.com/wwjyt/p/3182872.html