Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Light-City committed Mar 13, 2020
1 parent 08e9683 commit ada2b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic_content/const/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int main(){
}
```

<p><font style="color:red">小结:可以发现未被const修饰的变量不需要extern显示声明!而const常量需要显示声明extern,并且需要做初始化!因为常量在定义后就不能被修改,所以定义时必须初始化。</font></p>
<p><font style="color:red">小结:可以发现未被const修饰的变量不需要extern显式声明!而const常量需要显式声明extern,并且需要做初始化!因为常量在定义后就不能被修改,所以定义时必须初始化。</font></p>
## 4.定义常量

```c++
Expand Down Expand Up @@ -402,4 +402,4 @@ static int ap;
int Apple::ap=666
```

对于此项,c++11不能进行声明并初始化,也就是上述使用方法。
对于此项,c++11不能进行声明并初始化,也就是上述使用方法。

0 comments on commit ada2b0c

Please sign in to comment.