From 7d7937ec84091b6acebff1dfb470bf5609356ca7 Mon Sep 17 00:00:00 2001 From: hehe <74131522+y435449@users.noreply.github.com> Date: Sun, 16 May 2021 15:11:37 +0800 Subject: [PATCH] Update maohao.cpp --- basic_content/maohao/maohao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic_content/maohao/maohao.cpp b/basic_content/maohao/maohao.cpp index 3460e76..ee4eac2 100644 --- a/basic_content/maohao/maohao.cpp +++ b/basic_content/maohao/maohao.cpp @@ -8,7 +8,7 @@ public: static int count; // 类A的count (A::count) }; -// 静态变量必须在此处定义 +// 静态变量必须在类外定义 int A::count; int main() { ::count=1; // 设置全局的count为1