"要想定义成c o n s t e x p r ,函数必须非常简单:函数中仅有一条计算某个值的r e t u r n语句。c o n s t e x p r函数可以接受非常量实参,但此时其结果不再是一个常量表达式。当程序的上下文不需要常量表达式时,我们可以使用非常量实参来调用c on s t e x p r函数,这样我们就不用把同一个函数定义两次了:其中一个用于常量表达式,另一个用于变量。"
"我打断你的时候不许打断我"
"能在浪费时间中获得乐趣,就不是浪费时间。 一 伯特兰· 罗素"
"The central language feature of C++ is the class. A class is a user-defined type provided t represent a concept in the code of a program. Whenever our design for a program has a useful concept, idea, entity, etc, we try to represent it as a class in the program so that the idea is there in the code,"
用户评论
200页,短平快
精悍 该有的重点都有 不废话 快速复习cpp 逻辑性强(为什么存在某特性\n mark常用部分
学习C++不要看这个。想了解C++部分重要的新特性,可以当睡前书看看吧。
讲真这本书到第4章我就开始稀里糊涂了
不错的小册子,可以用来复习 C++ 以及了解一下近几年新标准加入的一些新功能。虽然代码示例有不少 typo。
很多细节,和C++新经典同步在看。都很好,对于小白,新经典更友好,a tour of c++适合有编程基础的同学