C++ Primer Plus (6th Edition), Chinese Edition cover

C++ Primer Plus (6th Edition), Chinese Edition

Rating 4.3
Word count
791 words
Chapters
28
Series
C and C++ in Practice
ISBN
9787115521644

Tags

Summary

C++ Primer Plus (6th Edition), Chinese Edition is a classic introductory C++ tutorial written by the American educator Stephen Prata. C++ builds on C by combining object-oriented programming, generic programming, and procedural programming. This book follows the 2003 ISO/ANSI C++ standard and devotes a special chapter to the new features of C++11. It has 18 chapters and 10 appendices, beginning with "how a C++ program runs" and then covering basic data types, compound data types, loops and relational expressions, branch statements and logical operators, functions with overloading and templates, memory models and namespaces, before moving on to classes and objects, using classes, dynamic memory allocation, class inheritance, code reuse, friends, exception handling, the string class and the Standard Template Library, and input/output and files. The final chapter systematically reviews the new C++11 standard. Concepts are carried by numerous short, pithy, directly runnable program examples, and each chapter includes review questions and programming exercises to help readers learn by doing. The author starts from C fundamentals and then moves to the features C++ adds, so no prior C background is required; the book serves both as a college C++ course textbook and as a self-study guide for complete beginners.

Editor's review

先分清两本“Primer”:面向初学者的那本是《C++ Primer Plus》,由长期讲授天文、物理与程序设计的普拉达写成,讲究从零讲起、循序渐进;而 Lippman 等人合著的《C++ Primer》更厚更硬核,通常被当作进阶读物。本书最大的优点是节奏:概念一次只讲一两个,配以短小完整的示例程序,读者可以立刻编译运行看到效果,难度上升曲线平缓,不会在指针或模板处突然断崖。每章末尾的复习题与编程练习是它的另一半价值——只读不写几乎学不会 C++,这些练习恰好逼迫读者把知识落到键盘上。第6版补充了 C++11 的新特性专章(自动类型推断、智能指针、右值引用与移动语义、lambda 表达式等),让这本老牌教材没有与时代脱节。需要提醒的是,中文版在个别术语和句式上存在翻译生硬之处,遇到含混的地方可对照英文原版或权威文档;另外书中使用的仍是较早期的工具链与标准实践,学到中后段建议配合 CPPReference 等现代资料一起看。

Who it's for

A good fit for

  • 完全没有编程基础、希望系统学习 C++ 的初学者
  • 学过一点 C 语言,想补上面向对象与泛型编程的学生
  • 需要一本可当教材的高校 C++ 课程授课教师与学生
  • 偏好通过大量小程序示例边看边练的自学者

Not a good fit for

  • 想直接学习现代 C++(C++17 及以后)特性的有经验开发者
  • 只求速成刷题、不打算系统打基础的读者
  • 偏好精炼参考手册而非长篇教程的资深程序员

Reading tips

  1. 按章顺序阅读,务必亲手敲完示例代码并跑通,不要只看不写。
  2. 每章学完先做复习题再做编程练习,做题卡壳时回头重读本章。
  3. 第10章起的类、继承与动态内存部分是难点,建议放慢速度并配合画内存示意图。
  4. 读完全书后对照 CPPReference 补充 C++11 之后的现代实践,避免停留在旧写法。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Getting Started with C++
  2. Chapter 2 Setting Out to Learn C++
  3. Chapter 3 Dealing with Data
  4. Chapter 4 Compound Types
  5. Chapter 5 Loops and Relational Expressions
  6. Chapter 6 Branch Statements and Logical Operators
  7. Chapter 7 Functions—C++'s Programming Modules
  8. Chapter 8 Adventures in Functions
  9. Chapter 9 Memory Models and Namespaces
  10. Chapter 10 Objects and Classes
  11. Chapter 11 Working with Classes
  12. Chapter 12 Classes and Dynamic Memory Allocation
  13. Chapter 13 Class Inheritance
  14. Chapter 14 Reusing Code in C++
  15. Chapter 15 Friends, Exceptions, and More
  16. Chapter 16 The string Class and the Standard Template Library
  17. Chapter 17 Input, Output, and Files
  18. Chapter 18 Exploring the New C++ Standard
  19. Appendix A Number Bases
  20. Appendix B C++ Reserved Words
  21. Appendix C The ASCII Character Set
  22. Appendix D Operator Precedence
  23. Appendix E Other Operators
  24. Appendix F The string Template Class
  25. Appendix G The Standard Template Library Methods and Functions
  26. Appendix H Selected Readings and Internet Resources
  27. Appendix I Converting to ISO Standard C++
  28. Appendix J Answers to Chapter Review Questions

FAQ

《C++ Primer Plus》和《C++ Primer》是同一本书吗?
不是。前者作者是 Stephen Prata,人民邮电出版社出版,定位为零基础入门教程;后者由 Stanley B. Lippman、Josée Lajoie、Barbara E. Moo 合著,电子工业出版社出版,内容更深更全,通常被视为进阶读物。两者常被混淆。
没有任何编程基础能直接读这本书吗?
可以。本书从 C++ 程序的运行方式和最基本的语法讲起,不要求读者具备 C 语言背景,作者本人也强调这是为初学者设计的教程,难度爬升较缓。
这本书讲的是新标准 C++ 吗?
主体内容基于 2003 年的 ISO/ANSI C++ 标准,第18章专门介绍了 C++11 新增特性。C++11 之后的 C++14、C++17 等标准未系统覆盖,需另行补充学习。
学完这本书能达到什么水平?
可以掌握 C++ 基本语法、函数、类与对象、继承、异常、string 类与 STL 容器算法、文件 I/O 等主干内容,具备独立编写中小型程序的基础,但工程实践与并发编程仍需后续学习。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category