摘要:
最近在看stl里面的map库,做下小结来记录一下。1.map的定义 实例化 map mapstr; map::iterator tmpiterstr; map mapint; map::iterator tmpiterint; struct note{ int x,y; note(int x=0,int y=0):x(x),y(y){} }; map mapnote; map::iterator tmpiternote; 2.map中容器的插入 mapstr.insert(pair("pass",123)); mapint.insert(pair(123,1... 阅读全文
posted @ 2013-11-13 09:23
TwIStOy
阅读(262)
评论(0)
推荐(0)

浙公网安备 33010602011771号