随笔分类 -  C/C++

摘要:「C++」内存管理之一:关键字 new/delete 阅读全文
posted @ 2014-01-04 15:20 kedebug 阅读(265) 评论(0) 推荐(0)
摘要:「C++」深入剖析 static_cast 阅读全文
posted @ 2014-01-04 15:09 kedebug 阅读(210) 评论(0) 推荐(0)
摘要:「C++11」Lambda 表达式 阅读全文
posted @ 2013-07-30 10:35 kedebug 阅读(5063) 评论(0) 推荐(2)
摘要:智能指针(英语:Smart pointer)是一种抽象的数据类型。在程序设计中,它通常是经由类型模板(class template)来实做,借由模板(template)来达成泛型,通常借由类型(class)的解构函数来达成自动释放指针所指向的存储器或对象。 阅读全文
posted @ 2013-07-19 11:00 kedebug 阅读(2861) 评论(1) 推荐(1)
摘要:「C++」条款02 & 03:#define & const 阅读全文
posted @ 2013-06-08 10:45 kedebug 阅读(603) 评论(0) 推荐(0)
摘要:注意事项: 1. 判断输入参数的合法性。 2. 要有返回的参数 3. 别忘了复制字符串末尾的'\0' 4. 如果内存有重叠,则倒着复制 阅读全文
posted @ 2012-12-23 15:20 kedebug 阅读(1578) 评论(0) 推荐(0)
摘要:C++ 基类的析构函数为虚函数的优点 阅读全文
posted @ 2012-12-17 19:52 kedebug 阅读(295) 评论(0) 推荐(0)
摘要:http://zhedahht.blog.163.com/blog/static/25411174200741543224391/ 阅读全文
posted @ 2012-12-14 23:23 kedebug 阅读(344) 评论(0) 推荐(0)
摘要:http://zhedahht.blog.163.com/blog/static/25411174200722710364233/ 阅读全文
posted @ 2012-12-12 17:01 kedebug 阅读(257) 评论(0) 推荐(0)
摘要:http://zhedahht.blog.163.com/blog/static/2541117420072915131422/ 阅读全文
posted @ 2012-12-12 10:48 kedebug 阅读(226) 评论(0) 推荐(0)