C++面向对象高级编程
笔记按照视频进行分节
¶C++ 编程简介
-
基础
- 学过某个 procedural language(C语言)
- 变量(variables)
- 类型(types):int, float, char, struct
- 作用域(scope)
- 循环(loops):while, for
- 流程控制:if-else, switch-case
- 编译,链接,而后执行
- 如何编译和链接
- 学过某个 procedural language(C语言)
-
目标
- 正规大气的编程习惯
- 以良好的方式编写 C++ class (Object Based)
- class without pointer members
—— Complex - class with pointer members
—— String
- class without pointer members
- 学习 Classes 之间的关系 (Object Oriented)
- Inheritance 继承
- Composition 复合
- Delegation 委托
-
历史
- B 语言 1969
- C 语言 1972
- C++ 语言 1983
(new C -> C with Class -> C++)
-
演化
- C++ 98 (1.0)
- C++ 03 (TR1, Technical Report 1)
- C++ 11 (2.0)
- C++ 14
-
参考书目
- C++ Primer Fifth Edition
- The C++ Programming Language Fourth Edition
- Effective C++ Third Edition
- The C++ Standard Library Second Edition
- C++ 源码剖析