TCPL_1 notes to reader(这个章节现在我没有能力看太懂,留作以后再写笔记)
2011-01-04 15:59
337 查看
1.2 learning c++
the most important thing to do when learning c++ is to focus on conepts and not get lost in language-technical details. The purpose of learning a programming language is to become a better programmer; that is to become more effective at designing and implementing new systems and at maintaining old ones. For this, an appreciation of programming and design techniques is far moe important than an understanding of details; that understanding comes with time and practice.
对于程序设计和设计技术的理解比细节更加重要。
c++ supports a variety of programming styles. All are based on strong static type checking, and most aim at achieving a high level of abstraction and a direct representation of the programmer's ideas.
c++支持多种不同的程序设计风格。所有这些的基础是强类型检查,大部分的目标是要获得一种高层次的抽象,以直接表达程序员的思想。
1.3 the design of c++
simplicity was an important design criterion.
简单是非常重要是设计标准。
c++ has no built-in high-level data types and no high-level primitive operations. For example, the c++ language does not provide a matrix type with an iversion operator or a string type with a concatenation operator. If a user wants such a type, it can be defined in the language itself. In fact, defining a new general-purpose or application-specific type is the most fundamental programming activity in c++. A well-designed user-defined type differs from a built-in type in the way it is defined, not in the way it is used. The c++ standard library described in part 3 provides many examples of such types and their uses. From a user's point of view, there is little difference between a built-in type and a type provided by the standard library.
c++没有内置高级数据类型也没有高级的基本操作,例如,c++没有提供带有求逆运算的矩阵类型,也没有带拼接字符串的字符串类型。(我熟悉的std::string,和MFC的CString这些都不是c++语言提供的)
Features that would incur run-time or memory overheads even when not used were avoided in the design of c++. If a user declares a structure consisting of two 16-bit quantities, that structure will fit into a 32-bit register.
the most important thing to do when learning c++ is to focus on conepts and not get lost in language-technical details. The purpose of learning a programming language is to become a better programmer; that is to become more effective at designing and implementing new systems and at maintaining old ones. For this, an appreciation of programming and design techniques is far moe important than an understanding of details; that understanding comes with time and practice.
对于程序设计和设计技术的理解比细节更加重要。
c++ supports a variety of programming styles. All are based on strong static type checking, and most aim at achieving a high level of abstraction and a direct representation of the programmer's ideas.
c++支持多种不同的程序设计风格。所有这些的基础是强类型检查,大部分的目标是要获得一种高层次的抽象,以直接表达程序员的思想。
1.3 the design of c++
simplicity was an important design criterion.
简单是非常重要是设计标准。
c++ has no built-in high-level data types and no high-level primitive operations. For example, the c++ language does not provide a matrix type with an iversion operator or a string type with a concatenation operator. If a user wants such a type, it can be defined in the language itself. In fact, defining a new general-purpose or application-specific type is the most fundamental programming activity in c++. A well-designed user-defined type differs from a built-in type in the way it is defined, not in the way it is used. The c++ standard library described in part 3 provides many examples of such types and their uses. From a user's point of view, there is little difference between a built-in type and a type provided by the standard library.
c++没有内置高级数据类型也没有高级的基本操作,例如,c++没有提供带有求逆运算的矩阵类型,也没有带拼接字符串的字符串类型。(我熟悉的std::string,和MFC的CString这些都不是c++语言提供的)
Features that would incur run-time or memory overheads even when not used were avoided in the design of c++. If a user declares a structure consisting of two 16-bit quantities, that structure will fit into a 32-bit register.
相关文章推荐
- Notes to the Reader(Chapter 1 of The C++ Programming Language)
- java__加一。数组内存放了一些个位数字,组成一个大数(从高位到低位),现在将这个数加 11,并输出加一以后的结果。
- 走到了现在这个时点,过去的日子是不易的,对以后也充满未知,感觉掌控不了自己的命运,还是要做出改变做出选择。。。
- Chapter 1 Notes to the Reader
- to WhoPig:这个……我现在是解析到了laifuer.cn的站长提供的地址上,具体你可以到他的...
- [Tex学习笔记]章节用罗马字母编号
- git 报这个错 fatal: refusing to merge unrelated histories
- android关于The connection to adb is down, and a severe error has occured.这个问题的解决办法
- 准备以后好好的在这个里面把自己的心得和感受写下来 !希望不要丢失!
- 看透大学里男生女生的本质,看清楚这个,在以后的路上你会走
- 只调用一次,以后就不走这个方法了
- 走上软件之路,以后就在这里记录自己的学习过程了(2007.12.18笔记)
- 关于struts2框架中的“There is no Action mapped for namespace /a and action name toform.”这个错误的原因
- 统计原理笔记 Notes for Statistics II
- [深度学习论文笔记][Weight Initialization] Exact solutions to the nonlinear dynamics of learning in deep lin
- PHP学习笔记-- B/S 结构软件类型介绍, 现在是Web2.0的时代;
- C++编程基础笔记章节一
- Linq to SQL笔记(二)
- 深度学习笔记1:end-to-end、anchor box解释、人体检测代码
- 今天是第一天所以写两个,这个是总结以前学到的一些知识看看自己以后的学习方向