摘要: 今天被同事问到一个问题,map中第三个参数的意思是什么,于是写了下面这个程序测试了一下。[cpp] view plaincopy#include<map>#include<iostream>usingnamespacestd;typedefmap<int,char>icMap;typedefmap<int,char>::iteratorIt;classfunc{public:func(){};booloperator()(constinti1,constinti2){returni1>i2;}};typedefmap<int,char 阅读全文
posted @ 2012-03-20 21:23 kanego 阅读(2865) 评论(0) 推荐(1) 编辑