首页 > 其他 > 详细

hash_map

时间:2014-06-25 20:58:24      阅读:350      评论:0      收藏:0      [点我收藏+]
#include <hash_map>
#include <iostream>

int main( )
{
   using namespace std;
   using namespace stdext;

   hash_map <int, CString> hm1;
   hash_map <int, CString> :: const_iterator hm1_AcIter, hm1_RcIter;
   typedef pair <int, CString> Int_Pair;

   hm1.insert ( Int_Pair ( 1, _T("aaa") ) );
   hm1.insert ( Int_Pair ( 2, _T("bbb") ) );
   hm1.insert ( Int_Pair ( 3, _T("ccc") ) );

   hm1_RcIter = hm1.find( 2 );
  AfxMessageBox( hm1_RcIter->second);
}

 

hash_map,布布扣,bubuko.com

hash_map

原文:http://www.cnblogs.com/duyy/p/3805520.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!