A Tour of C++ (2/e)

Bjarne Stroustrup

出版时间

2018-06-29

ISBN

9780134997834

评分

★★★★★
书籍介绍
这不本教你怎么写代码的书,而是一次由C++之父亲自主持的「语言巡礼」。作者不逐条罗列语法,而是把每个特性放回它所属的编程风格里讲解——面向对象、泛型、并发——让你看清特性背后的设计意图。全书仅两百余页,却从基础一路串到C++17乃至C++20,move语义、lambda、uniform初始化等新特性尽收其中,被读者称为「modern C++ 扫盲书」和「查漏补缺」的利器。它适合想要快速把握现代C++全貌、或想借经典重入门的人,也适合读过Primer、希望拔高视角的开发者。需要提醒的是:它刻意不求深入,若期待一本面面俱到的工具书,或许会失望;而部分特性甚至领先于编译器的支持。
作者简介
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.
AI导读
核心看点
  • C++之父亲自撰写,权威解读现代C++核心特性
  • 涵盖C++17/20新特性,如移动语义、Lambda等
  • 强调结合编程风格学习,避免孤立看待语言特性
读者共识
  • 言简意赅,比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,"
用户评论
言简意赅, 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年读起来也毫不过时。作为入门读物实在太棒了。
下载
收藏