From 245a5d6be2af469bbd99b1518c12ff0e34ed96d6 Mon Sep 17 00:00:00 2001 From: rabix Date: Mon, 13 May 2024 10:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=200-=E5=BC=80=E5=A7=8B=20Get?= =?UTF-8?q?ting=20Started?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0-开始 Getting Started | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 0-开始 Getting Started diff --git a/0-开始 Getting Started b/0-开始 Getting Started new file mode 100644 index 0000000..31b7096 --- /dev/null +++ b/0-开始 Getting Started @@ -0,0 +1,23 @@ +# 观察 + +首先来看一段代码,这段代码可能和你平常写的也差不多,但是也有一些区别 + + + +编译运行它,结果是什么都没有,这说明没有问题,那么如果不小心打错了呢,比如你是复制粘贴的第四行只改了变量名 + + + + + +那么很快,当你运行时,程序就会提示你预先认为的`a + b == 8`并不成立,导致出错的代码是`/app/example.c`他的行数是`7`。 + + + +``` +我们把 /app/example.c:7 叫位置信息 +其中/app/example.c是文件名 +7是行数 +有了这两个就可以精确定位出问题的代码附近 +``` +