随笔分类 -  c++

c++对象池使用
摘要://// ObjectPool.h// DragonBall//// Created by user on 13-8-22.////#include #include #include "cocos2d.h"#include using namespace std;using namespac... 阅读全文
posted @ 2015-05-15 11:50 minwei 阅读(1148) 评论(0) 推荐(0)
cocos2d-x3.3 以前版本 工程Xcode6编译时的问题
摘要:Undefined symbols for architecture i386: "_fwrite$UNIX2003", referenced from: _unixErrorHandler in libcocos2dx iOS.a(tif_unix.o) _unixWarni... 阅读全文
posted @ 2015-01-23 15:01 minwei 阅读(324) 评论(0) 推荐(0)
C++11新特性 lambda表达式
摘要:C++11 添加了了一个名为lambda表达式的功能,可以用于添加匿名函数语法: [capture_block](parameter) mutable exception_specification ->return_type{body}e.g 一个点击时间的例子auto btnTest = But... 阅读全文
posted @ 2015-01-23 12:15 minwei 阅读(131) 评论(0) 推荐(0)