stdmap 用 at() 取值,如果 key 不存在,不好意思,程序崩溃。QMap 用 value()取值,如果 key 不存在,不会崩溃,你还可以指定默认值
NoSuchKey
猜你喜欢
转载自www.cnblogs.com/findumars/p/11514363.html
今日推荐
周排行