newlist

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

2013年6月18日

摘要: MapInfo* CGameConfig::getMapInfoById( int nId ){ for (map::iterator it = m_mapMapInfo.begin(); it != m_mapMapInfo.end(); it++) { if (nId == it->first) { return &(it->second); } } CCLog("error: CGameConfig::getMapInfoById"); return NULL;} 阅读全文
posted @ 2013-06-18 14:20 一枚程序 阅读(1694) 评论(0) 推荐(0)

摘要: "100,100;500,500;300,300;150,150;30,30"static void split(const string& src, const string& separator, vector& dest) { string str = src; string substring; string::size_type start = 0, index; do { index = str.find_first_of(separator,start); if... 阅读全文
posted @ 2013-06-18 14:16 一枚程序 阅读(1977) 评论(0) 推荐(0)