From e39f0a2cb69f203a9913bb868528539c0fe6614b Mon Sep 17 00:00:00 2001 From: dengrb1 Date: Sat, 30 Nov 2024 10:00:26 +0800 Subject: [PATCH] =?UTF-8?q?update=20in=20class=20=E5=90=AB=E6=9C=893?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/class_test.cpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/class/class_test.cpp b/class/class_test.cpp index 8f4b921..a0a1252 100644 --- a/class/class_test.cpp +++ b/class/class_test.cpp @@ -11,7 +11,7 @@ int main(){ cin >>a>>b>>c; - /*if (a = 1) + if (a = 1) { cout <<"no"; Sleep(1000); @@ -43,9 +43,7 @@ int main(){ return 0; } -*/ -/* int main(){ //三角形判断 int a,b,c; @@ -83,7 +81,7 @@ int main() { } return 0; -}*/ +} int main(){ int n = 6; @@ -93,5 +91,19 @@ int main(){ int sum = n * (n+1) /2; cout <