1、代码示例:unordered_map<string, int> mymap1; auto val = mymap1["str"]; // val为0 // 常用于词频统计,存在则加一,不存在则创建后赋值为1 ...
確定! 回上一頁