feat(WIKI): wiki 2025 BREAKING CHANGE: Older content is categorized into older folders
This commit is contained in:
30
2023旧版内容/3.编程思维体系构建/3.4.6.1.开始冒险.md
Normal file
30
2023旧版内容/3.编程思维体系构建/3.4.6.1.开始冒险.md
Normal 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!
|
||||
|
||||
尽管可能微不足道,但该程序确实展示 *了*任何文本冒险中最重要的方面:描述性文本。一个好的故事是制作一款好的冒险游戏的要素之一。
|
||||
|
||||
## 为什么要用英文?
|
||||
|
||||
因为中文的编码模式可能会带来奇怪的影响。
|
||||
|
||||
思考题:大家可自行去了解 utf-8,GDB 等编码模式及其历程
|
||||
Reference in New Issue
Block a user