再问一个复杂的问题,不会的不要说
c++吧
全部回复
仅看楼主
level 1
spwork
楼主
U & operator[] (const T &key)
Index the map. Create a new pair if key not found.
U * operator[] (const T &key) const
Index the map. Return null if key is not found, does not create a new pair.
怎样才能使用第二个重载
2018年01月17日 17点01分
1
level 11
xym5366
你不也不会吗😔
2018年01月17日 17点01分
2
level 15
SiΩdome
参数一样的话是没法重载的。
2018年01月17日 23点01分
5
level 4
blue_2s
用常量对象调用;
2018年01月18日 03点01分
6
level 16
◆心之刃◆
萌新瑟瑟发抖,不敢说话
2018年01月18日 14点01分
7
幻の上帝
然而敢氵?
2018年01月19日 14点01分
1