From e33eadcbb346688dc2cec2ae2f71ea63137070b5 Mon Sep 17 00:00:00 2001 From: Francis <455954986@qq.com> Date: Mon, 4 May 2020 10:18:29 +0800 Subject: [PATCH] Update README.md --- basic_content/const/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/basic_content/const/README.md b/basic_content/const/README.md index f9c7f44..a7e32e8 100644 --- a/basic_content/const/README.md +++ b/basic_content/const/README.md @@ -76,6 +76,7 @@ int main(){ ```
小结:可以发现未被const修饰的变量不需要extern显式声明!而const常量需要显式声明extern,并且需要做初始化!因为常量在定义后就不能被修改,所以定义时必须初始化。
+ ## 4.定义常量 ```c++