浅谈 · map用法

· · 个人记录

定义

map<string,int>q;

定义了一个中括号 string 类型存 int 类型的q。

map<int,int>q;

定义了一个中括号 int 类型存 int 类型的q。