LeetCode(804)唯一摩尔斯密码词
set的添加:
set<string>wSet; string s = "sss"; wSet.insert(s);
遍历:
for (auto it = wSet.cbegin(); it != wSet.cend(); it++){ cout<<*it<<endl; }
删除:
wSet.erase("sss");
set的添加:
set<string>wSet; string s = "sss"; wSet.insert(s);
遍历:
for (auto it = wSet.cbegin(); it != wSet.cend(); it++){ cout<<*it<<endl; }
删除:
wSet.erase("sss");