Skip to content

Commit

Permalink
Merge pull request Light-City#236 from youngquan/new_branch
Browse files Browse the repository at this point in the history
修改了一个错误的加粗符号位置
  • Loading branch information
Light-City committed Oct 28, 2022
2 parents 74dddb3 + 4b46606 commit bed5771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic_content/static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main()

- 类中的静态变量

由于声明为static的变量只被初始化一次,因为它们在单独的静态存储中分配了空间,因此类中的静态变量**由对象共享**对于不同的对象,不能有相同静态变量的多个副本。也是因为这个原因,静态变量不能使用构造函数初始化。
由于声明为static的变量只被初始化一次,因为它们在单独的静态存储中分配了空间,因此类中的静态变量**由对象共享**对于不同的对象,不能有相同静态变量的多个副本。也是因为这个原因,静态变量不能使用构造函数初始化。

```c++

Expand Down

0 comments on commit bed5771

Please sign in to comment.