-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a content roadmap in zh/README.md
- Loading branch information
Showing
1 changed file
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,65 @@ | ||
# Modern Cpp Primer | ||
# Modern C++ Primer | ||
|
||
测试文本测试文本测试文本 | ||
## 介绍 | ||
|
||
本项目是一个以认知阶段为主线的现代 C++ 教程,为此有三个主要目标: | ||
* 内容准确,尽量避免歧义 | ||
* 跟随 C++ 标准 | ||
* 内容由浅入深,减少学习负担 | ||
|
||
## 内容主线 | ||
|
||
````mermaid | ||
graph LR | ||
X001(基本环境搭建) --> X002(控制台编译指令) --> T01(std::print Hello, World!) | ||
X003(标识符与关键字) --> T02(简单函数) | ||
X004(简单声明) --> T02 | ||
X005(语句与表达式) --> T02 | ||
T01 --> T02 | ||
T02 --> F001(深入main函数) | ||
X006(if<br/>switch) | ||
X007(for) | ||
X008(while<br/>do-while) | ||
X009(作用域与生命期)-->F002(深入函数) | ||
X006 --> F002 | ||
X007 --> F002 | ||
X008 --> F002 | ||
T02 --> F002 | ||
subgraph 简单类型 | ||
X010(算数类型)-->X011(初步类类型) | ||
X010-->X012(枚举类型) | ||
X010-->X013(联合类型) | ||
end | ||
subgraph 衍生类型 | ||
X014(指针类型) | ||
X015(引用类型) | ||
X016(数组类型) | ||
end | ||
X011-->衍生类型 | ||
X012-->衍生类型 | ||
X013-->衍生类型 | ||
衍生类型-->深入类类型 | ||
衍生类型-->T0202(类型转换) | ||
T0202-->T0203(函数重载) | ||
F002-->T0203 | ||
X011-->深入类类型 | ||
subgraph 深入类类型 | ||
T0204(访问限制) --> T0206(数据成员) --> T0205(函数成员) | ||
T0205-->T0207(特种成员函数) | ||
T0205-->T0208(友元类和友元函数) | ||
T0204-->T0208 | ||
T0209(继承) --> T0210(派生类) --> T0211(虚函数) --> T0212(动态类型转换) | ||
T0205-->T0211 | ||
end | ||
T0203-->T0205 | ||
T0202-->T0212 | ||
衍生类型-->T0304(类型提取) | ||
```` |