diff --git a/0-Getting Started 开始.md b/0-Getting Started 开始.md index 00fc363..ca35fe5 100644 --- a/0-Getting Started 开始.md +++ b/0-Getting Started 开始.md @@ -2,6 +2,7 @@ 首先来看一段代码,这段代码可能和你平常写的也差不多,但是也有一些区别 +[在线运行](https://godbolt.org/z/56h6qMhTh) ```c #include @@ -12,12 +13,12 @@ int main(void) { assert(a + b == 8); } ``` -https://godbolt.org/z/56h6qMhTh + 编译运行它,结果是什么都没有,这说明没有问题,那么如果不小心打错了呢,比如你是复制粘贴的第四行只改了变量名 - +[在线运行](https://godbolt.org/z/ehfed3zv3) ``` C #include @@ -28,7 +29,7 @@ int main(void) { assert(a + b == 8); } ``` -https://godbolt.org/z/ehfed3zv3 + 那么很快,当你运行时,程序就会提示你预先认为的`a + b == 8`并不成立,导致出错的代码是`/app/example.c`他的行数是`7`。