摘要: http://blog.csdn.net/feimashenhua/article/details/6654995 STL中的容器按存储方式分为两类,一类是按以数组形式存储的容器(如:vector 、deque); 另一类是以不连续的节点形式存储的容器(如:list、set、map)。在使用eras 阅读全文
posted @ 2011-12-06 23:24 小 楼 一 夜 听 春 雨 阅读(512) 评论(0) 推荐(0)
摘要: 先声明:下面的文章是针对windows的用法,因为std::map的erase函数的windows的实现版本是返回一个std::map的迭代器,但是STL标准里面的该函数的返回值确是: map.erase有3个重载:void erase ( iterator position );size_type 阅读全文
posted @ 2011-12-06 21:36 小 楼 一 夜 听 春 雨 阅读(62278) 评论(4) 推荐(6)
摘要: 用自己的main loop替代系统的main loop#include "ogre/Ogre.h"#include "ois/OIS.h"class MyFrameListener : public Ogre::FrameListener{public: MyFrameListener(Ogre::RenderWindow* win) { size_t winHandle = 0; std::ostringstream winHandleStr; OIS::ParamList pl; win->getCustomAttribu... 阅读全文
posted @ 2011-12-06 14:15 小 楼 一 夜 听 春 雨 阅读(856) 评论(0) 推荐(0)