上一页 1 2 3 4 5 6 7 ··· 29 下一页

effective C++ 条款6 若不想使用编译器自动生成的函数,就该明确拒绝

摘要: class unCopyable { protected: uncopyable(){}; ~uncopyable(){}; private: uncopyable(const uncopyable&); uncopyable& operator =(const uncopyable&);} 为了驳 阅读全文
posted @ 2020-09-23 01:38 123_123 阅读(110) 评论(0) 推荐(0) 编辑

effective C ++ 条款五 了解C++默默编写并调用哪些函数

摘要: class Empty{}; class Empty { public : Empty() {...} Empty(const Empty &rhs) {...} Empty& operator = (const Empty &rhs){...} ~Empty() {...} }; 编译器可以为cl 阅读全文
posted @ 2020-09-23 01:26 123_123 阅读(116) 评论(0) 推荐(1) 编辑

effective C ++ 条款四 确定对象被使用之前已经先被初始化

摘要: 内置对象进行手工初始化,C++不保证初始化他们。 构造函数最好使用成员初值列,不要在构造函数本体使用赋值操作,初始值列出的成员变量,排列次序应该是在class中声明次序相同。 免除跨编译单元之初始化次序的问题,local static 对象替换non_local static 对象。 阅读全文
posted @ 2020-09-23 01:15 123_123 阅读(105) 评论(0) 推荐(0) 编辑

effective c++ 条款3 尽可能使用const

摘要: 将某些东西声明为const可以帮助编译器侦测出错误用法,const可以被施加在任何作用域的对象,函数参数,函数返回类型。 const 出现在星号左边,被指物是常量。 const 出现在星号右边,指针自身是常量。 char *p = greeting; //non-const pointer, non 阅读全文
posted @ 2020-09-23 00:51 123_123 阅读(113) 评论(0) 推荐(0) 编辑

effective C++ 条款2

摘要: 尽量以const, enum ,inline 替换#define 编译替换预处理器比较号。 对于单纯的常量,const 对象或者enums替换#defines 对于形似函数的宏,最好用inline函数替换#defines 阅读全文
posted @ 2020-09-23 00:11 123_123 阅读(80) 评论(0) 推荐(0) 编辑

effective C++ 条款1

摘要: 认识C++ 所需要认识的四个东西: 1.C 2.c with class 封装 继承 多态 虚函数(动态绑定) 3.template C++ 泛型编程 4.STL 阅读全文
posted @ 2020-09-23 00:07 123_123 阅读(95) 评论(0) 推荐(0) 编辑

Unity UI系统

摘要: 1 阅读全文
posted @ 2020-07-15 16:57 123_123 阅读(116) 评论(0) 推荐(0) 编辑

unity UGUI 源码

摘要: 3 阅读全文
posted @ 2020-04-09 18:56 123_123 阅读(462) 评论(0) 推荐(0) 编辑

unity 资源打包管理

摘要: 1 阅读全文
posted @ 2020-04-09 18:52 123_123 阅读(162) 评论(0) 推荐(0) 编辑

lua 热更新流程/换包流程

摘要: 1 阅读全文
posted @ 2020-04-09 17:10 123_123 阅读(526) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 29 下一页