C++
文章平均质量分 55
elite7
这个作者很懒,什么都没留下…
展开
-
C++中的几种type cast
static_cast:无条件转换,强制隐式转换,implicit conversion, 例如:non const -> const, int -> doubledynamic_cast:有条件转换,进行执行期检验;安全向下转型(safe down casting)决定某对象是否属于继承体系中的某个类型。reinterpret_cst:低级转型,例如:pointer to int (int*) -> intconst_cast:将对象的常量性去掉(cast away the constness);原创 2010-12-12 12:18:00 · 847 阅读 · 0 评论 -
file writer test
test the fwrite原创 2010-12-21 23:23:00 · 336 阅读 · 0 评论 -
RTTI
RTTI(Run-Time Type Identification,通过运行时类型识别)程序能够使用基类的指针或引用来检查这些指针或引用所指的对象的实际派生类型。转载 2011-03-14 21:43:00 · 373 阅读 · 0 评论 -
Google C++ 编程风格指南(中文翻译)-1
个人感觉总结的很好,正在试图翻译,待续...原文:http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml翻译 2011-03-16 00:02:00 · 1328 阅读 · 0 评论 -
Google C++ 编程风格指南(中文翻译)-2
类,未完,待续。翻译 2011-03-21 21:36:00 · 3292 阅读 · 0 评论