《C++语言导学》小记

0
11

我看的这本是Bjarne Stroustrup写的,南开大学的杨巨峰和王刚译的。这本书不适合初学者看,我就是大概翻了翻其中感兴趣的章节。

这本书第14章的标题是“历史和兼容性”,这节内容我看了收获很深。p144-145的内容值得去看。

从中可以看出,ISO C和ISO C++是K&R C [Kernighan, 1978] 的两个主要后代,因此它们是兄弟。两者发展过程中都从经典C继承了关键特性,但又不都是100%兼容经典C。

《C++语言导学》p144

2011年,C++11和C11相继推出。我认为要是现在开始学习C/C++的话,可以直接从标准11开始。

What is the purpose of this site?

Our goal is to provide programmers with a complete online reference for the C and C++ languages and standard libraries, i.e. a more convenient version of the C and C++ standards.

The primary objective is to have a good specification of C and C++. That is, things that are implicitly clear to an experienced programmer should be omitted, or at least separated from the main description of a function, constant or class. A good place to demonstrate various use cases is the “example” section of each page. Rationale, implementation notes, domain specific documentation are preferred to be included in the “notes” section of each page.

https://en.cppreference.com/w/Cppreference:FAQ

上面引用的一段话我是想说,平时可以上这个网站翻翻文档看。如果想了解C/C++语言的历史,上面这个网站里有很完整的介绍。

2020-01-21

<

发布回复

请输入评论!
请输入你的名字