From a56a4f9b233734e5708ddd431d11278295268bde Mon Sep 17 00:00:00 2001 From: YdrMaster Date: Thu, 11 Jul 2024 20:55:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(exercise03):=20=E5=A3=B0=E6=98=8E=E9=9C=80?= =?UTF-8?q?=E8=A6=81=20static=EF=BC=8C=E5=AE=9A=E4=B9=89=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YdrMaster --- exercises/03_argument¶meter/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exercises/03_argument¶meter/main.cpp b/exercises/03_argument¶meter/main.cpp index 1da96bc1..5c8f8b10 100644 --- a/exercises/03_argument¶meter/main.cpp +++ b/exercises/03_argument¶meter/main.cpp @@ -1,10 +1,10 @@ // READ: -// TODO: 为下列 ASSERT 填写正确的值 #include "../exercise.h" -void func(int); +static void func(int); +// TODO: 为下列 ASSERT 填写正确的值 int main(int argc, char **argv) { auto arg = 99; ASSERT(arg == ?, "arg should be ?"); @@ -15,7 +15,8 @@ int main(int argc, char **argv) { return 0; } -static void func(int param) { +// TODO: 为下列 ASSERT 填写正确的值 +void func(int param) { ASSERT(param == ?, "param should be ?"); std::cout << "befor add: " << param << std::endl; param += 1;