import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DtvhUNIn.js";const F=JSON.parse('{"title":"1.开始冒险","description":"","frontmatter":{},"headers":[],"relativePath":"技术资源汇总(杭电支持版)/3.编程思维体系构建/3.4.6.1.开始冒险.md","filePath":"技术资源汇总(杭电支持版)/3.编程思维体系构建/3.4.6.1.开始冒险.md"}'),t={name:"技术资源汇总(杭电支持版)/3.编程思维体系构建/3.4.6.1.开始冒险.md"},e=n(`
让我们从一个最基本的函数开始
#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 等编码模式及其历程
`,10),h=[e];function p(l,k,r,d,E,o){return a(),i("div",null,h)}const g=s(t,[["render",p]]);export{F as __pageData,g as default};