- 博客(3)
- 资源 (1)
- 收藏
- 关注
转载 makefile
Small C/C++ applications with a couple of modules are easy to manage. Developers can recompile them easily by calling the compiler directly, passing source files as arguments. That is a simple approac
2011-11-22 05:34:46
666
转载 smart pointer
C++ 智能指针详解 一、简介由于 C++ 语言没有自动内存回收机制,程序员每次 new 出来的内存都要手动 delete。程序员忘记 delete,流程太复杂,最终导致没有 delete,异常导致程序过早退出,没有执行 delete 的情况并不罕见。用智能指针便可以有效缓解这类问题,本文主要讲解参见的智能指针的用法。包括:std::auto_ptr、boost::
2011-11-19 07:41:46
319
原创 const hashmap
<br />const 成员函数:常用于不改变数据的函数。<br /> <br /> 非常量成员函数不能被常量成员对象调用,因为它可能企图修改常量的数据成员:<br /> 既: const 对象 只能调用 const 函数<br /> 。。。函数 。。。。。。。。函数<br /> <br /> <br />用法<br />Class A{};<br /> <br />int A::fun() const{}<br /> 为什么需要hash_map<br />用过map吧?ma
2011-03-20 12:06:00
399
Modern Processor Design - Fundamental of Superscalar Processors
2010-01-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅