clq

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年2月18日

摘要: c++ 自定义排序函数的 mapbcbstruct datekey{ unsigned __int64 i; String s; bool operator < (datekey const& _A) const { //这个函数指定排序策略,按nID排序,如果nID相等的话,按strName排序 //If(nID < _A.nID) return true; //If(nID == _A.nID) return strName.compare(_A.strName) < 0; //Return false; if(i < _A.i) return true; 阅读全文
posted @ 2012-02-18 16:46 clq 阅读(5312) 评论(0) 推荐(0) 编辑