Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ch02.md #60

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update ch02.md
  • Loading branch information
Janus1984 committed Mar 1, 2023
commit 1c5b7c8726e84289f5c7b4354a6957c1bd45187b
4 changes: 2 additions & 2 deletions notes/ch02.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@

### 初始化和const
- const对象**必须初始化**,且**不能被改变**。
- const变量默认不能被其他文件访问,非要访问,必须在指定const定义之前加extern。要想在多个文件中使用const变量共享,定义和声明都加const关键字即可
- const变量默认不能被其他文件访问,非要访问,必须在指定const定义之前加extern。要想在多个文件中使用const变量共享,定义和声明都加extern关键字即可

### const的引用

Expand Down Expand Up @@ -244,4 +244,4 @@ strct Sale_data{
...
}
#endif
```
```