Skip to content

Commit ef2f018

Browse files
committed
book: optimize multi-language support
1 parent 12df225 commit ef2f018

24 files changed

+215
-37
lines changed

book/en/src/base/chapter_0.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../base/chapter_0.html
7+
[English]: ./chapter_0.html
8+
19
# Preface
210

311
mcpp-standard is an open-source tutorial project focused on **Modern C++ Core Language Features** with an emphasis on hands-on coding practice. The project structure follows the [Book + Video + Code + X] model, providing users with online e-books, corresponding instructional videos, accompanying practice code, as well as discussion forums and regular learning activities.
@@ -6,3 +14,21 @@ mcpp-standard is an open-source tutorial project focused on **Modern C++ Core La
614
- [Video: Instructional Videos](https://youtube.com/playlist?list=PL7uow6t1QjF0ooMLkLSS96swpSuBZvoRE&si=1xHOGVIYpbzZAosI)
715
- [Code: Practice Code](https://github.com/Sunrisepeak/mcpp-standard/tree/main/dslings/en)
816
- [X: mcpp Forum](https://forum.d2learn.org/category/20)
17+
18+
## Language Support
19+
20+
| 中文 | English | Repo |
21+
| --- | --- | --- |
22+
| [中文](../../base/chapter_0.html) | [English](./) | [Github](https://github.com/Sunrisepeak/mcpp-standard) |
23+
24+
## Activities | [ 📣 MSCP - mcpp Project Learning and Contributor Cultivation Program ](https://moga.d2learn.org/activity/mscp/intro.html)
25+
26+
> MSCP is a "Earth Online" style role-playing game developed based on the mcpp-standard open-source project. In the game, you'll play as a "programming beginner" embarking on a challenging and exciting journey to learn Modern C++ and uncover its underlying truths...
27+
28+
- `Price:` Free
29+
- `Developer:` [Sunrisepeak](https://github.com/Sunrisepeak)
30+
- `Publisher:` [MOGA](https://moga.d2learn.org)
31+
- `Release Date:` October 2025
32+
- `Game Duration:` 100H - 200H
33+
- `Tags:` Souls-like, The Sims, 🌍Online, Programmer, C++, Open Source, Feynman Learning Method
34+
- [-> Game Details](https://moga.d2learn.org/activity/mscp/intro.html)

book/en/src/base/chapter_1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../base/chapter_1.html
7+
[English]: ./chapter_1.html
8+
19
# Usage Guide
210

311
**mcpp-standard** is a hands-on tutorial project focused on Modern C++ core language features. Based on the [xlings(d2x) tool](https://xlings.d2learn.org), it implements a **compiler-driven development model** for code practice that can automatically detect exercise code status and navigate to the next exercise.

book/en/src/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../changelog.html
7+
[English]: ./changelog.html
8+
19
# mcpp-standard Changelog
210

311
## 2025/11

book/en/src/cpp11/00-auto-and-decltype.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/00-auto-and-decltype.html
7+
[English]: ./00-auto-and-decltype.html
8+
19
# Type Deduction - auto and decltype
210

311
auto and decltype are powerful **type deduction** tools introduced in C++11. They not only make code more concise but also enhance the expressive power of templates and generics.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/01-default-and-delete.html
7+
[English]: ./01-default-and-delete.html
8+
19
# Defaulted and Deleted Functions

book/en/src/cpp11/09-list-initialization.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/09-list-initialization.html
7+
[English]: ./09-list-initialization.html
8+
19
# List Initialization
210

311
List initialization is an initialization style that uses `{ arg1, arg2, ... }` lists (curly braces) to initialize objects, and can be used in almost all object initialization scenarios, hence it's often called **uniform initialization**. Additionally, it adds type checking for list members to prevent narrowing issues.

book/en/src/cpp11/10-delegating-constructors.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/10-delegating-constructors.html
7+
[English]: ./10-delegating-constructors.html
8+
19
# Delegating Constructors
210

311
Delegating constructors are syntactic sugar introduced in C++11. Through simple syntax, they can avoid writing excessive repetitive code and achieve constructor logic reuse without affecting performance.

book/en/src/cpp11/11-inherited-constructors.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/11-inherited-constructors.html
7+
[English]: ./11-inherited-constructors.html
8+
19
# Inherited Constructors
210

311
Inherited constructors are a syntactic feature introduced in C++11 that solves the tedious problem of derived classes repeatedly defining base class constructors in class inheritance structures.

book/en/src/cpp11/12-nullptr.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/12-nullptr.html
7+
[English]: ./12-nullptr.html
8+
19
# nullptr - Pointer Literal
210

311
`nullptr` is a **pointer literal** introduced in C++11, used to represent null pointers. It addresses the shortcomings of traditional null pointer representations (such as `NULL` and `0`) in terms of type safety and overload resolution.

book/en/src/cpp11/13-long-long.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div align=right>
2+
3+
🌎 [中文] | [English]
4+
</div>
5+
6+
[中文]: ../../cpp11/13-long-long.html
7+
[English]: ./13-long-long.html
8+
19
# long long - 64-bit Integer Type
210

311
`long long` is a **64-bit integer type** introduced in C++11, used to represent larger range integer values. It solves the range limitation issues of traditional integer types when representing large integers.

0 commit comments

Comments
 (0)