modern-cpp-tutorial README

The project's README from github.com/changkun/modern-cpp-tutorial. As one markdown file: README.md.

logo

Modern C++ Tutorial: C++11 to C++26 On the Fly

Purpose

The book claims to be "On the Fly". Its intent is to provide a comprehensive introduction to the relevant features of modern C++ (from C++11 through C++26). Readers can choose interesting content according to the following table of content to learn and quickly familiarize the new features you would like to learn. Readers should be aware that not all of these features are required. Instead, it should be learned when you really need it.

At the same time, instead of coding-only, the book introduces the historical background of its technical requirements (as simple as possible), which provides great help in understanding why these features came out.

In addition, the author would like to encourage readers to use modern C++ directly in their new projects and migrate their old projects to modern C++ gradually after reading the book.

Targets

Start

You can choose from the following reading methods:

Code

Each chapter of this book contains a lot of code. If you encounter problems while writing your own code with the introductory features of the book, reading the source code attached to the book might be of help. You can find the book here. All the code is organized by chapter, the folder name is the chapter number.

Exercises

There are few exercises at the end of each chapter of the book. These are meant to test whether you have mastered the knowledge in the current chapter. You can find the possible answer to the problem here. Again, the folder name is the chapter number.

Website

The source code of the website of this book can be found here, which is built by hexo and vuejs. The website provides you another way of reading the book, it also adapts to mobile browsers.

Build

If you are interested in building everything locally, it is recommended using Docker. To build, simply run:

$ make build

Acknowledgements

This book was originally written in Chinese by Changkun Ou.

The author has limited time and language skills. If readers find any mistakes in the book or any language improvements, please feel free to open an Issue or start a Pull request. For detailed guidelines and checklist, please refer to How to contribute.

The author is grateful to all contributors, including but not limited to Contributors.

Licenses

Creative Commons License
This work was written by Ou Changkun and licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. The code of this repository is open sourced under the MIT license.

modern-cpp-tutorial (changkun/modern-cpp-tutorial)

Searching Database…

这是什么?这是一本免费的书,讲解从 C++11 到 C++26 的现代 C++ 特性,面向已经熟悉传统 C++(C++98 或更早版本)、希望快速学习新内容的读者。
这是一本书,还是动手实践的编程课程?主要是一本供阅读的书(可以在 GitHub 上在线阅读、下载 PDF 或 EPUB,或访问专门的网站),但每章都配有可以自己运行的真实代码示例和带答案的练习。
这本书是怎么组织的?我从哪里开始读?内容按章节划分,与代码和练习答案的文件夹结构一一对应,所以你可以直接跳到想学的功能所在的章节,而不必从头读到尾。
读这本书之前,我需要有 C++98 的基础吗?需要。本书假定你已经能熟练阅读 C++11 之前的传统代码;它不是 C++ 入门书,只讲解 C++ 的现代特性。
这本书适合学习高级、深奥的 C++ 吗?不适合。它只在有限程度上涵盖现代 C++ 的技巧,并且明确不是为寻求高级 C++ 精通的读者准备的,不过有经验的开发者可以用它来自测知识。
谁适合读这本书?有多年传统 C++ 经验、希望快速掌握现代特性的开发者,以及想要复习或自测现代 C++ 知识的高级读者。
这本书最初是用英文写的吗?不是。它最初是由 Changkun Ou 用中文写成的,后来才提供了英文版;作者欢迎读者指出语言错误并提出更正。
练习有答案吗?有。每章的练习都有对应的答案文件夹,编号与章节一致。
Creator
changkun
Size
65.2 MB
Stars
25.9K
Age
10y
Commits · 90 Days