From 4b4660628279a87840beaca9ba90ab9ebe15a817 Mon Sep 17 00:00:00 2001 From: yangquan Date: Tue, 23 Aug 2022 16:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E5=8A=A0=E7=B2=97=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basic_content/static/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic_content/static/README.md b/basic_content/static/README.md index 008693e..a33f139 100644 --- a/basic_content/static/README.md +++ b/basic_content/static/README.md @@ -55,7 +55,7 @@ int main() - 类中的静态变量 -由于声明为static的变量只被初始化一次,因为它们在单独的静态存储中分配了空间,因此类中的静态变量**由对象共享。**对于不同的对象,不能有相同静态变量的多个副本。也是因为这个原因,静态变量不能使用构造函数初始化。 +由于声明为static的变量只被初始化一次,因为它们在单独的静态存储中分配了空间,因此类中的静态变量**由对象共享**。对于不同的对象,不能有相同静态变量的多个副本。也是因为这个原因,静态变量不能使用构造函数初始化。 ```c++