feat: 好几章

This commit is contained in:
camera-2018
2023-04-14 15:41:04 +08:00
parent dbd4e84eae
commit 15c19b9b1e
135 changed files with 8128 additions and 11 deletions

View File

@@ -0,0 +1,30 @@
# 1.开始冒险
让我们从一个最基本的函数开始
```c
#include <stdio.h>
int main()
{
printf("Welcome to Little Cave Adventure.\n");
printf("It is very dark in here.\n");
printf("\nBye!\n");
return 0;
}
```
输出样例:
Welcome to Little Cave Adventure.
It is very dark in here.
Bye!
尽管可能微不足道,但该程序确实展示 <em>了</em>任何文本冒险中最重要的方面:描述性文本。一个好的故事是制作一款好的冒险游戏的要素之一。
# 为什么要用英文?
因为中文的编码模式可能会带来奇怪的影响。
思考题:大家可自行去了解 utf-8GDB 等编码模式及其历程