![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 63
Geek4IT
叶椿建
展开
-
C++Primer读书笔记(1)-声明和定义
最近又捡起《C++ Primer》重读,随便将一些小知识点总结一下吧。C++程序通常由许多文件组成,为了让多个文件访问相同的变量,c++区分了声明和定义1.Declarations and DefinitionsA defination of a variable allocates storage for the variable andmayalso specify原创 2012-10-21 14:58:42 · 397 阅读 · 0 评论 -
C++Primer读书笔记(2)-引用和类型
2.5A reference serves as a alternative name for an object. In real-world programs,reference are primarily used as formal parameters to functions.int ival=1024;int &refVal=ival; //ok: refVal ref原创 2012-10-21 15:36:32 · 474 阅读 · 0 评论 -
Effective C++读书笔记(1)-Introduction
----------------------------- Scott Meyers*Third Edition------------------------------------ If you follow all the guidelines all the time, you are unlikely to fall into the most common traps原创 2012-11-01 09:03:42 · 362 阅读 · 0 评论 -
Effective C++阅读笔记(2)Item 1: View C++ as a federation of languages
Item 1: View C++ as a federation of languagesToday's C++ is amultiparadigmprogramming language, one supporting a combination ofprocedural, object-oriented,functional,generic, andmetapr原创 2012-11-01 09:27:24 · 479 阅读 · 0 评论 -
Effective C++读书笔记(3)-Item 2: Prefer consts, enums, and inlines to #defines
Item 2: Prefer consts, enums, and inlines to #defines This Item might better be called "prefer the compiler to the preprocessor“#define ASPECT_RATIO 1.653The solution is to replace原创 2012-11-02 13:04:39 · 468 阅读 · 0 评论