
C++
飞-翔-鸟
游戏程序员一枚,做过三维引擎开发,后发觉移动互联网大势所趋,转行移动端开发,热爱ios应用,android应用开发,现从事游戏开发,常用语言c,lua
展开
-
STL中vector自定义对象的排序、删除
1、首先定义结构体对象 struct StructStu { int _num1; int _num2; int _num3; StructStu(int num1,int num2,int num3) { _num1 = num1; _num2 = num2; _num3 = num3; } bool operator<(const StructStu &righ原创 2014-04-14 15:32:08 · 1631 阅读 · 0 评论 -
常用的单例类模板
#ifndef HelloLua_SingletonTemplate_h #define HelloLua_SingletonTemplate_h template class SingletonTemplate { public: static T *getInstance() { if(NULL == _instance) {原创 2014-04-21 22:29:26 · 611 阅读 · 0 评论