A Tour of C++ (2/e)

Bjarne Stroustrup

出版时间

2018-06-29

ISBN

9780134997834

评分

★★★★★
书籍介绍
In A Tour of C++ (2/e), Bjarne Stroustrup, the creator of C++, describes what constitutes modern C++. This concise, self-contained guide covers most major language features and the major standard-library components―not, of course, in great depth, but to a level that gives programmers a meaningful overview of the language, some key examples, and practical help in getting started. Stroustrup presents the C++ features in the context of the programming styles they support, such as object-oriented and generic programming. His tour is remarkably comprehensive. Coverage begins with the basics, then ranges widely through more advanced topics, including many that are new in C++17, such as move semantics, uniform initialization, lambda expressions, improved containers, random numbers, and concurrency. The tour even covers some extensions being made for C++20, such as concepts and modules, and ends with a discussion of the design and evolution of C++. This guide does not aim to teach you how to program (for that, see Stroustrup’s Programming: Principles and Practice Using C++, Second Edition), nor will it be the only resource you’ll need for C++ mastery (for that, see Stroustrup’s The C++ Programming Language, Fourth Edition, and recommended online sources). If, however, you are a C or C++ programmer wanting greater familiarity with the current C++ language, or a programmer versed in another language wishing to gain an accurate picture of the nature and benefits of modern C++, you can’t find a shorter or simpler introduction than this tour provides.
AI导读
核心看点
  • C++之父亲自撰写,权威解读现代C++核心特性
  • 涵盖C++17/20新特性,如移动语义、Lambda等
  • 强调结合编程风格学习,避免孤立看待语言特性
适合谁读
  • 有编程基础,希望快速了解现代C++的开发者
  • 需系统梳理C++新特性,不愿啃大部头的工程师
  • 想从设计者视角理解C++演进与最佳实践的读者
读前提醒
  • 非零基础教程,需具备一定C++或编程经验
  • 侧重概览与核心概念,细节实现需参考其他书
  • 建议阅读英文原版,中文译本质量参差不齐
读者共识
  • 言简意赅,比C++ Primer更轻量且易读
  • 高屋建瓴,提供独特的语言设计者视角
  • 虽薄但全面,是快速掌握Modern C++利器

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "要想定义成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,"
作者简介
Bjarne Stroustrup is the designer and original implementer of C++ and the author of Programming: Principles and Practice Using C++, 2nd Edition, and The C++ Programming Language, 4th Edition, among others. Having previously worked at Bell Labs, AT&T Labs - Research, and Texas A&M University, he is currently Managing Director in the technology division of Morgan Stanley in New York City. The recipient of numerous honors, including The National Academy of Engineering 2018 Charles Stark Draper Prize for Engineering “for conceptualizing and developing the C++ programming language, Dr. Stroustrup is a member of the National Academy of Engineering, an AT&T Fellow, an AT&T Bell Laboratories Fellow, an IEEE Fellow, and an ACM Fellow. He was voted into Electronic Design's Engineering Hall of Fame in 2013. His research interests include distributed systems, simulation, design, programming techniques, software development tools, and programming languages, and he remains actively involved in the ANSI/ISO standardization of C++. Dr. Stroustrup holds an advanced degree from the University of Aarhus in his native Denmark and a Ph.D. in Computer Science from Cambridge University, England.
用户评论
言简意赅, C++写好安全的代码是需要不断地练习的,但我觉得clean C++写的最贴合工程实际,douban却没有
就想看看c++17都有啥
cpp之父的书,200多页把modern cpp核心的语言特性讲清楚了,比Cpp Primer实在好太多了,确实是按照“Don’t consider language features in isolation ”来写的。
言简意赅,比 C++ Primer 读起来轻松多了(主要是页数少……
你给我讲些编译器都还没支持的特性...
回顾学习,巩固c++17,浅尝c++20
C++ 之父对Cpp的又一力作,真是看语言的角度都不同。此书适合对cpp有个概览,知道有啥东西。cook book还是读C++ Primer更好些。虽然老爷子创造了cpp,但后来控制权基本都在cpp 委员会,不过他对cpp的理解绝对是独一无二的。
BS的作品,云淡风轻,高屋建瓴。
modern c++ 扫盲书
没了解C++17可以拿这个重新入门一次,一定大有裨益。短短的书,从头串了远到20的内容。18年出版,22年读起来也毫不过时。作为入门读物实在太棒了。
收藏