From 0aedba7097e5e038363a4b8704ba2167dc463474 Mon Sep 17 00:00:00 2001 From: czldl Date: Mon, 21 Nov 2022 00:36:55 +0000 Subject: [PATCH] =?UTF-8?q?update=20GuiCalculator.java.=20//=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=BD=BB=E5=BA=95=E8=A7=A3=E5=86=B3=E9=99=A40?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: czldl --- GuiCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GuiCalculator.java b/GuiCalculator.java index 294dd93..5e7ec42 100644 --- a/GuiCalculator.java +++ b/GuiCalculator.java @@ -168,7 +168,7 @@ class CalcString { case '/': if (0 == n2) { System.out.println("Error:/0"); - res = 0; + res = 0;//没有彻底解决除0问题 break; } res = n1 / n2; -- Gitee