本书符合ANSI/ISO C++标准。内容全面,涵盖C++语言的主要语法和算法的基础知识。内容详略得当。虽然涵盖内容范围很广,但是针对入门读者的特点,将重点放在C++语言的基础语法和程序设计的基本思想方面,对基础部分的讲解相对更细致。它针对入门读者,深度合适,讲解细致入微、浅显易懂。在章节结构上,也为教师调整授课内容次序留有余地,便于不同的教师对内容进行裁减和重组。在书中适时穿插自测题,方便自学读者及时复习巩固。适当地利用图示和源程序注释,便于自学读者理解。
这是一本适合初学者的好书,尤其适合没有教师指导的自学读者。
本书是最优秀的C++入门教材,深受师生欢迎。作者结合自己多年的教学经验,根据教学大纲精心设计并编写了书中内容。与此同时,还采用了很多便于读者巩固所学知识的教学特征,比如各章开始处的小节总览,书中随处可见的总结框、编程提示和编程陷阱,各章结尾处的小结、习题和编程项目等。这些非常适合初学者掌握重要的编程概念。
全书共18章,8个附录。在讲解c++基础知识之后,直接引导学生深入函数、I/O流、类、控制流程、命名空间、数组、字符串、指针和动态数组、递归、模板、指针和链表、派生类、异常以及标准模板库。
Table of Location of Video Notes Inside front cover
Chapter 1 Introduction to Computers and C++ Programming 1
Chapter 2 C++ Basics 39
Chapter 3 More Flow of Control 111
Chapter 4 Procedural Abstraction and Functions That Return a Value 181
Chapter 5 Functions for All Subtasks 251
Chapter 6 I/O Streams as an Introduction to Objects and Classes 305
Chapter 7 Arrays 375
Chapter 8 Strings and Vectors 445
Chapter 9 Pointers and Dynamic Arrays 499
Chapter 10 Defining Classes 529
Chapter 11 Friends, Overloaded Operators, and Arrays in Classes 609
Chapter 12 Separate Compilation and Namespaces 695
Chapter 13 Pointers and Linked Lists 733
Chapter 14 Recursion 781
Chapter 15 Inheritance 825
Chapter 16 Exception Handling 881
Chapter 17 Templates 913
Chapter 18 Standard Template Library 943
Appendices
1 C++ Keywords 999
2 Precedence of Operators 1000
3 The ASCII Character Set 1002
4 Some Library Functions 1003
5 Inline Functions 1011
6 Overloadingthe Array Index Square Brackets 1012
7 The this Pointer 1014
8 Overloading Operators as Member Operators 1017
Index 1019