From 1b6ded97693ab861836d354821120a8e258f967d Mon Sep 17 00:00:00 2001 From: fdzcxy212206248 <2737577908@qq.com> Date: Wed, 25 Sep 2024 10:31:31 +0800 Subject: [PATCH 01/10] Initial commit --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6422026 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# xzy + -- 2.34.1 From 559a2cd848a921bf9c2e7566acabca79fc3c893d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 25 Sep 2024 11:46:55 +0800 Subject: [PATCH 02/10] first --- 新建 DOC 文档.doc | Bin 0 -> 9216 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 新建 DOC 文档.doc diff --git a/新建 DOC 文档.doc b/新建 DOC 文档.doc new file mode 100644 index 0000000000000000000000000000000000000000..c328d7ae724403aa875071b0c69b70df08e7f550 GIT binary patch literal 9216 zcmeI1YitzP701ua?Ap7wv5jLKVjv#K0uBLpOdvH0#C8nD!KojZ#AzUj2_^xBhh#wM zQ*4^FP@yKS`pO4HiA1GHts+-#)Jka^s-$VFwn~tS+N%9vK2++5e%PX_YNC?q??1ak z%?djvK}5(t_HXZ<`l0)4G4*f2qu1lhb4Qjmr+D2ED|1yvxMGXjbggfkz?WG^G!&Idn zFMOrrU%<_8*P=(%ciBxgndQc zVG-N{8CVQUU@0`ht*{JkgXORSn&4v)Kr^g_+hG-~hCATn&;o1VPPhx!!aBGcTA>Zv z;U4IK^{@dx0UMzc?uAXz1^2-xp&NRj7y4i`^urdoA2h}R!Uy3~@DOZ;A$S-bfk$Bw zw!>qv15{63OR2?zHOzwJSXB0RAkx6#KSMXtM3lgfYdfAi!XnX5us!2>8Lt_G&9{zC zbF6ohV_luD?d?n_4#2+7MCu^Kb^jk`tbOo&_+n)1IJLz7bmG*pSDsw=?7-H3DfXhY zm_O*)`N)!SqHBj``N%D%1_S|UG-B>q5lIxau$wboi5=TC3KE<-JPQyZlEw(#y z8VAVk#(6wND5t)cskM&^D-t8lmr+ECd5***&FuL`H7;=?vzr}@RNtI0U7qw@H^KiA z*Rq?}RyAr#OBxELUw(A|^S}JonG-Cy+7ZXKWYTe+(h@gWaBKO}h2N~gem0i9O!fV^ zT9#{O1h?sym(U232$$Jd$EWSI9ycV6u1yZL9p|{4k*Lnak)%tak-SFV-u?VrEpgxC zk(@c9Nz}S3YN6CiyKd4=OxQvPJvtP%vXkFfhd2y0!MN0!i6pCx0s6Pko?vn3!vmzP zrY^Q)bQmwe=$h=@)3+wxZj1i-Q~F1J8_$>xU4VOOZH>? zmHQiaj$h~B%)0rL%1$% z3%7+2hmV9~tgCA)jX2)V(f7Ijd_NVG1rc(7j5Po=pA- z7wTrO?dT?J?bcjag^gRyUc$C)DTgOw=`wBB`EB&lJ385Te&o~hbLP@Ax+;{aR9u@^ zm03=kD6bMZCTZmOT!o;rLh*hp&*@m>Mn+ByF7F?+^&^=!^gI|q)xZohRr?bTK0 z=CXveUp|qt@ws2i;M3 z55rfT!;Wvh91%Xb)zi?!HZqFjAK(3jedTDHJJj5NW`* zimTwIW|TR-HK6m*8JWf!C_LxAJB?K^-G-iukGb^7Ua86C4@#^WpX|{&ZFE;t3 zZ?-QSO_km_uCER{F4VW5dpXQ{oFl2>DCHoBTKl78M2cQk8aY~2n`%d|{+BIO zl=uMGM>PN>X~kbYuB<;Tj9l%;lE3TZzuU;p722P?wLVcOS$>)%0V zH~#{TZtTCHIhH_2I?T{>vcB)EBGeoIedBbec{j>rQ@+mo8wlgmMlu!#$e|{ye5xQ2FYq|s&DbyJVjhO9tEw%pMuuR8=!A!zXOf$51>Ad zf!3;QgIX;Ivekc}45VaziAfdOt|t5-wkXzVd_CTFaoYQZ>W?H2zd>AMku(BbG_5@( zJH(Iry9bo6xaLq7mh8cv!}y&cJkt)oh2BHBo03EJ0G5qRdfBnc1}ph0xSHP;eEDnQ l>tGYtO?(|(Lwpta()sxFzmW|KqHoeN&IdXF<964z{12iQ>4N|O literal 0 HcmV?d00001 -- 2.34.1 From 4185703bada608ef69ee2600851b381325db2567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 9 Oct 2024 11:07:35 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E8=AE=A1=E7=AE=97=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 +++ .idea/misc.xml | 6 ++ .idea/modules.xml | 8 +++ src/Computer.java | 157 ++++++++++++++++++++++++++++++++++++++++++++++ src/Main.java | 15 +++++ 5 files changed, 194 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 src/Computer.java create mode 100644 src/Main.java diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0548357 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5430172 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/Computer.java b/src/Computer.java new file mode 100644 index 0000000..bc163df --- /dev/null +++ b/src/Computer.java @@ -0,0 +1,157 @@ +import javax.swing.*; +import java.awt.*; +import java.awt.event.*; +public class Computer extends JFrame{ + private static final long serialVersionUID = 1L; + JPanel xs, aj; + JTextField xsArea; + JButton[] aJButtons = new JButton[16]; + String a; + int flag = 0; + public static void main(String[] args) { + Computer t = new Computer(); + } + + public Computer() { + this.setTitle("计算器"); + Container c = getContentPane(); + c.setLayout(new BorderLayout()); + xs = new JPanel(new FlowLayout()); + xsArea = new JTextField(20); + xsArea.setFont(new Font("宋体", Font.PLAIN, 38)); + xs.add(xsArea); + c.add(xs, BorderLayout.NORTH); + aj = new JPanel(new GridLayout(4,4)); + aJButtons[0]=new JButton("0"); + aJButtons[1]=new JButton("1"); + aJButtons[2]=new JButton("2"); + aJButtons[3]=new JButton("3"); + aJButtons[4]=new JButton("4"); + aJButtons[5]=new JButton("5"); + aJButtons[6]=new JButton("6"); + aJButtons[7]=new JButton("7"); + aJButtons[8]=new JButton("8"); + aJButtons[9]=new JButton("9"); + aJButtons[10]=new JButton("+"); + aJButtons[11]=new JButton("-"); + aJButtons[12]=new JButton("*"); + aJButtons[13]=new JButton("/"); + aJButtons[14]=new JButton("="); + aJButtons[15]=new JButton("."); + + aj.add(aJButtons[7]); + aj.add(aJButtons[8]); + aj.add(aJButtons[9]); + aj.add(aJButtons[13]); + aj.add(aJButtons[4]); + aj.add(aJButtons[5]); + aj.add(aJButtons[6]); + aj.add(aJButtons[12]); + aj.add(aJButtons[1]); + aj.add(aJButtons[2]); + aj.add(aJButtons[3]); + aj.add(aJButtons[11]); + aj.add(aJButtons[0]); + aj.add(aJButtons[15]); + aj.add(aJButtons[10]); + aj.add(aJButtons[14]); + c.add(aj, BorderLayout.CENTER); + setSize(400, 400); + setVisible(true); + + for(int i = 0; i < 10; i++) { + final String o = aJButtons[i].getActionCommand(); + aJButtons[i].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a = xsArea.getText(); + a = a + o; + xsArea.setText(a); + } + }); + + } + + aJButtons[10].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a = xsArea.getText(); + a = a + "+"; + flag = 1;//加法 + xsArea.setText(a); + } + }); + + aJButtons[11].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a = xsArea.getText(); + a = a + "-"; + flag = 2;//减法 + xsArea.setText(a); + } + }); + + aJButtons[12].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a=xsArea.getText(); + a=a+"*"; + flag=3;//乘法 + xsArea.setText(a); + } + }); + + aJButtons[13].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a=xsArea.getText(); + a=a+"/"; + flag=4;//除法 + xsArea.setText(a); + } + }); + + aJButtons[14].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a = xsArea.getText(); + String[] sz = new String[2]; +//分割字符串:+ 或 - 或 * 或 / + sz=a.split("\\+|\\-|\\*|\\/");//把分割的两个部分放进sz中 + double b = 0; + if(flag == 0) { +//输出原数 + b = Double.parseDouble(a); + } + + else if(flag == 1) { +//加法 + b = Double.parseDouble(sz[0]) + Double.parseDouble(sz[1]); + } + + else if(flag == 2) { +//减法 + b = Double.parseDouble(sz[0]) - Double.parseDouble(sz[1]); + } + + else if(flag == 3) { +//乘法 + b = Double.parseDouble(sz[0]) * Double.parseDouble(sz[1]); + } + + else if(flag == 4) { +//除法 + b = Double.parseDouble(sz[0]) / Double.parseDouble(sz[1]); + } + + a = ""+b; + xsArea.setText(a); + } + }); + + aJButtons[15].addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + a=xsArea.getText(); + a=a+"."; + xsArea.setText(a); + } + }); + + } + +} \ No newline at end of file diff --git a/src/Main.java b/src/Main.java new file mode 100644 index 0000000..fe7aa2b --- /dev/null +++ b/src/Main.java @@ -0,0 +1,15 @@ +//TIP 要运行代码,请按 或 +// 点击装订区域中的 图标。 +public class Main { + public static void main(String[] args) { + //TIP 当文本光标位于高亮显示的文本处时按 + // 查看 IntelliJ IDEA 建议如何修正。 + System.out.printf("Hello and welcome!"); + + for (int i = 1; i <= 5; i++) { + //TIP 按 开始调试代码。我们已经设置了一个 断点 + // 但您始终可以通过按 添加更多断点。 + System.out.println("i = " + i); + } + } +} \ No newline at end of file -- 2.34.1 From b175433b49e4bf7e5a5d4624a201a2e07b8940e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 9 Oct 2024 11:21:14 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E8=AE=A1=E7=AE=97=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Computer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Computer.java b/src/Computer.java index bc163df..b1da97c 100644 --- a/src/Computer.java +++ b/src/Computer.java @@ -13,7 +13,7 @@ public class Computer extends JFrame{ } public Computer() { - this.setTitle("计算器"); + this.setTitle("计算器") Container c = getContentPane(); c.setLayout(new BorderLayout()); xs = new JPanel(new FlowLayout()); -- 2.34.1 From 7b29f25c3fdb478e0ad16d31e7563917670a5af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 9 Oct 2024 11:25:49 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E8=AE=A1=E7=AE=97=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 0 UML.iml | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 .idea/vcs.xml create mode 100644 UML.iml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..e69de29 diff --git a/UML.iml b/UML.iml new file mode 100644 index 0000000..e69de29 -- 2.34.1 From fcdab987668bee1989f788120801ebfb2e0fab01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 9 Oct 2024 11:33:49 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E7=AC=AC4=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 6 ++++++ UML.iml | 11 +++++++++++ src/Computer.java | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index e69de29..94a25f7 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/UML.iml b/UML.iml index e69de29..c90834f 100644 --- a/UML.iml +++ b/UML.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/Computer.java b/src/Computer.java index b1da97c..bc163df 100644 --- a/src/Computer.java +++ b/src/Computer.java @@ -13,7 +13,7 @@ public class Computer extends JFrame{ } public Computer() { - this.setTitle("计算器") + this.setTitle("计算器"); Container c = getContentPane(); c.setLayout(new BorderLayout()); xs = new JPanel(new FlowLayout()); -- 2.34.1 From a871290e4472a9d5354f0948b96388b2bc480d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 9 Oct 2024 16:47:12 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E7=AC=AC5=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Computer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Computer.java b/src/Computer.java index bc163df..2d070ca 100644 --- a/src/Computer.java +++ b/src/Computer.java @@ -111,12 +111,10 @@ public class Computer extends JFrame{ public void actionPerformed(ActionEvent arg0) { a = xsArea.getText(); String[] sz = new String[2]; -//分割字符串:+ 或 - 或 * 或 / - sz=a.split("\\+|\\-|\\*|\\/");//把分割的两个部分放进sz中 + sz=a.split("\\+|\\-|\\*|\\/"); double b = 0; if(flag == 0) { -//输出原数 - b = Double.parseDouble(a); + b = Double.parseDouble(a); } else if(flag == 1) { -- 2.34.1 From 5ff86b18ac3a8089b4f7b9e10643812369957f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=B3=BD=E5=AE=87?= <2737577908@qq.com> Date: Wed, 9 Oct 2024 16:47:26 +0800 Subject: [PATCH 08/10] java --- out/production/UML/com/su/Computer$1.class | Bin 1073 -> 0 bytes out/production/UML/com/su/Computer$2.class | Bin 1062 -> 0 bytes out/production/UML/com/su/Computer$3.class | Bin 1062 -> 0 bytes out/production/UML/com/su/Computer$4.class | Bin 1062 -> 0 bytes out/production/UML/com/su/Computer$5.class | Bin 1062 -> 0 bytes out/production/UML/com/su/Computer$6.class | Bin 1551 -> 0 bytes out/production/UML/com/su/Computer$7.class | Bin 1029 -> 0 bytes out/production/UML/com/su/Computer.class | Bin 3128 -> 0 bytes 8 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 out/production/UML/com/su/Computer$1.class delete mode 100644 out/production/UML/com/su/Computer$2.class delete mode 100644 out/production/UML/com/su/Computer$3.class delete mode 100644 out/production/UML/com/su/Computer$4.class delete mode 100644 out/production/UML/com/su/Computer$5.class delete mode 100644 out/production/UML/com/su/Computer$6.class delete mode 100644 out/production/UML/com/su/Computer$7.class delete mode 100644 out/production/UML/com/su/Computer.class diff --git a/out/production/UML/com/su/Computer$1.class b/out/production/UML/com/su/Computer$1.class deleted file mode 100644 index adc0627b204828fa35b5fb05b254df6b54796ce1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1073 zcmaJ=>rN9v7(LULF4V=AmYWKqQn8fFisBU{!CDkjFA1cHKbLkaOSZdYcM80K4`jk6 z(ZmPvp^Rsia!G60WWURNXTHmsnLmGj{syp!l|GorYw<9JeoXe^0j5%Tgo3uF4HQ!_ zFsa3i7PC4wXJFodW#F+u&%W*EeSvIc*WR}+*Y+CLrV1Rdu_TaGJ5HD&o|$-#7badJBQVm*^xKx>)@5Mg6<(WI(!gcBA?qEa=NAMrmzzIt@5-7I7>|}Z z2dy}vl4OoucBB!A7c>FM!*Df_9Ah-1;Lr*WIEl5fB@fk_Bi%ZQ9oD(KBLYT4Dh(7E zEKGMFw}4>cq`kK%J)Xu~`!udzukKxK9$2CoOiCeT%jG5H@{sCqH_Rs(T diff --git a/out/production/UML/com/su/Computer$2.class b/out/production/UML/com/su/Computer$2.class deleted file mode 100644 index d1e41bcd55a0950bd2b46b535721c30253ba5927..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmaJ=?M@Rx6g@*rx2#(z1qv#N)~fvwRuDfBEY=1Rpo-es#Ggw$lqK8UW_Jp_h0kIF zCDFtO@S%)%wgsBfxXI4mk2B|UaB7@ktZ3T&W2>>x-LkQ7Q6yG$s)kiDTvPhpU{ID~(6()xy9LYeJWlRJKXY=K zDvudeVLJ9F?jAU9gVz}5Q^h0W*wBp=q4Q&I3q9{cHl@Aht1;XKy9$BhII*ki=2iHyrVhyjXAl@5WQyE+dtw}!7w+l*`nzQPSYc$ zeKZV#lpI3n)XTe^TAA_3aH@MJq)Oi@^HZ^9a;rwF;*$GjhC!)wA%XJ1)15K)v?lu@ z;@F@>$Y?gXO~tW)BF3csgJmu-^uxzY(HbHQu!lIU@eT^pxJ@46eKwMTJGk5B z`i_8)+RdC16}@K&v=KbVuylSQ^z8ylCqCRpI5t8{8)`RCxLe&#R~YSDOdP{h_A|Bc t1xqMl6=m$;Ymd0yD{;G+#Tmz|QzLRY`lqK8UW_Jqx3%|t# zN}`D$;71wnY|A5sxXI4m$C-1_y)*mg@6X==7O)n@AnvLdLNbawNU6Ao`_g)#Agv;T zq+Bus$ja}m%siBsoPs$8x`Iax5wT}_DKbV%Ri~kQExq70nk~WIB}y)vwkcK^#?qIv znKDDD;M6$7aLKg!+g78(-5sN1Q6ye+s)kiITvPhJU`Uo?&^B$Gy9LYeJWlRtKXWQi zm4}V0Fdh3ncXu7P!D|dN>C(P&VCcr7(D?zkg}&xP)}_7Vt1;X`hquLs$*mfxN=WX@83v`!g#^k2&veIlp*7hL z5y!7eM2u#W+jLC1-Z5R=cbTd;C1M;9PIqv0n|3XuPBk`3h<7Sv{3^aOZqv;l0*wJI z7L$iVKSY4uI7TTtM%D`XGNNW@kHNAh2>kFdBhqy48)_fbfEU~;bUCuZ92nf=VB5FQ`t|{ v!e`9m3l{MeTljWCT=7g?5mT5ZQ9<0IJps(nAb=44*hx&1rBZH?zV!S9U$^m{ diff --git a/out/production/UML/com/su/Computer$4.class b/out/production/UML/com/su/Computer$4.class deleted file mode 100644 index 1aaa9836015e1eba3c226a3e10534133402f5d2e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmaJ=>rN9v6#k}{UAk_e6ey@5TC0{KtZ2O;SVaN}P%jCji9e^?p)A?%lHDor7Cws! zltdFBz=txP*_KNRag&`rXU;d@`OZ1BfBydb4WNvb6w-KTU=aBf9-v_05gse+iH@QH z4SBW944|aGvnujbVdiwq>#%e@W6LS?Tb(eOsRo~`rjR%hMdz%TBiox9QJQ1wAJPZZ7BmK;U zGG!j(wsd^&s|a@epd}g%)5YpOKjaoal9o6Wp0rjX$eOa3A~if{QX!N7!!a1!emk(m zx}$Wa&x@T`+?00Bvt2)Qyyhn%_xy&A1ru33H<7`xi5DpAcxmDlUYmG>MTYT6lgquP zwJifW_p$A`4H1}l3o3(^Oe`z#J5)@(#|P?jUz-bMhRh|)m-@c2CBxK>#a5kA3hEvy z?W19c7gZCq<8UPqRLVruhGQ!{B30JrjyRU`kP4^?Xb%?$ga51hoMy zlTpK=A0kF?79+GfN>+t@wPTcKPiYQki2aB#W3+070XTBB=DH}1<2HGOkJv~C?%-~Z z>pS8RYO8cYRP>%8-a+CNN#*>4_U#OMcR$&|KsH572SzWho#IyS&;`c46q7@e(%Mu) t0}BvX#4a|`ydrMvLfjT6F-4-{xJPGVn5ISm3Hq_~m>|obSem}{`~!0T@zVeR diff --git a/out/production/UML/com/su/Computer$5.class b/out/production/UML/com/su/Computer$5.class deleted file mode 100644 index f9605a82a5840df7a7ac250a5b6ed09f661007f4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmaJ=?M@Rx6g|_gZPzW70tFRBv1(g{6{RYIU?q@1>qi1<;?He6lqK8UW_Jp_h0kI_ zOQMMn;6oYjYzs7P<0d!@OOr8CsyYqbYw0^qquCPN-Js;AX`5n;VJb6} z&6XKLJ5G%=jF(KCe{MA@+&wZX7DbXJr)pSb!!@Pf3x;GV25sNAxw~T-p2x|Z9Ar-C zsq(l{6{cf<kKo#Cd;tv z`k`=X-^Z3|)wrwS9jFbaYuJ?F_t?^~jSn>Efib7^42fHoFO^eX6%6wun=P51;50o_ zIzYn^%*Y``F1&)vsg+rO3>Uh0PO9{SBYq+FOm5XkRZ4OXXBd<^7ZNBBJlh>(Uu&`- zB2JDrJ2L%R86pfP|Y z67q29hX~M{#3V(h$l4-bM%3I=8!UH)zz-iYO>2ZOz$sF+rn)H1;4XQD_t{7W?%{rq z>pOxzs+hYZDta#w>>$)eSUSHD`E~`R8xMC7O~z>HK<(v~HtzH`-C(p^F)4(ptVJy} sunHUNaBzTTpSa?UxFY5-Pojc&KzjmMpg{m3`mq-=OO{HxIDP5)2bvf15dZ)H diff --git a/out/production/UML/com/su/Computer$6.class b/out/production/UML/com/su/Computer$6.class deleted file mode 100644 index c4724506383f5e7daa56911a81a09f986a111767..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1551 zcmaJ>-)|IE6#j1a$F$Qa?QWs1wg}=PyW1{HN`H#rIoq|v8G(b@eQ0h?AU@|+q(Fbs zcICzT=7#iFtqq5obkQqY&YI=h>fTbuRVV>t$#tba=U71?c^z!`oS9_geybeXo_ksP zS3Q4IRs@b@i`T6!%d~EWrreTlXwF6^3+g--Wn=kO7BcpKb^=|&Ee8FtY2;XL)m#aE z+pRLF*x;HM=vxV`@{N*JixSt65ztq>x?h%ywyLggm!gv@BPP4xmK`skladUtc@+)k z4Gd$>z#$A7n8$*KMFVf)f`KJ03k*b+>xM)kKLOzF-@BN5?R+XVLRD+f4*a-!Jx4!!2^k&YlyazPg)uzG8|@=+qzFeCCGsUcLL3QVPx24wit7Pl4a6TJ zk@yA4Qd5&iYYlXl4lFmXJ$I050Y5=s{sFa?K7J1eCt|0moQNw~Cbrtb5^Y$O*x44A zY{PC48*5?OJ*4*f^r9qwM(>qJFw%Vu9LP1$-@pJy%sM zWg9QxV;sjVnApKIKEVZihAa3S6?{RfFYzh9!ngPuckvB=#CP}|-{Vi*j(E+JGcxus zuTStij*-tH{6@bSvVI)*xn5-K6SV9@;x9~V$i_xTM@Oj4QQ3t&#<|D&FE8LQPdZ(s Hx%2x60@ZF` diff --git a/out/production/UML/com/su/Computer$7.class b/out/production/UML/com/su/Computer$7.class deleted file mode 100644 index 427679f2b2eae36df4699bf4a9d3f07c1457a6a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1029 zcmaJ=Yi|-k6g>lU7uKyj`czvhiVD=S^;wnLq$O>l!AH`D#E%P%bem<%s8{S(H= zk1%OzqKQAiA7#9=(3Sux$$D_8ea z+}EHWEr)CrIXUNLdRfH-6)P$V42syd{LCstvRreUhTk?yZnM=E+$&OY-Eu6k!7!a2 z$>u5yk&;{I4Dqt%@OSNIm3w<;)ux?P*{zv&#q=y0_ctT56odZSaky8qP2cAfP7O0> z)~IsatO?6?K5*}o>os|uVJTZaFb_?`JQ4;!*PuogF2gZsyKdX7 z@f}O*oIGo`Ai1gRwo|iR-*Osnx!8B>DhwS-tm=p(q2nPQsd%iD>rZt&!y3a}pvg9! zhOsL=I=9uf>^k>!JjV+LR?zWMf{R!ui-#P}5JBRC;C=Og*961j*gngaFE|-TB8O-g z!dcnB((yMvPF>6g4s;Cvhy)pL_IO9^Slq6Yud|YSG{c}axR5}3*SVg916|QcM#QOc z3B_!+xI;Iz(!Zg>bE8y!gNQLI+@5Dt-9M{7GmfM}&snDz&Tthhk&u@`Z$Cs|5-Hl9 zqSXe)a!1QApMd305&9WmrfF0N1AM^@jk7%z&GQryK47E%a1Gb{T%QpRP^J7aQPFpd za2JsiOvvCjl#i!Sd;1ezL{l*uy3qQ00-xuuT!=^^Lgl`aShjqM3gG0bgkCQvd(} diff --git a/out/production/UML/com/su/Computer.class b/out/production/UML/com/su/Computer.class deleted file mode 100644 index 13ebe964e1a9fdec6c8a04b9ac19b83a1ceee9a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3128 zcmZuzSx_9;6+N$Kpqo|$!w4j-1zWO~VX!n3LPCI$jF7RxBjf}bd%UIvE!1e}k$V~m zJC0X*-!1P;Vk_~I$Wh|h47SE{`7@Ot|K%rDsY+E;N#!Fy_E%D6`@HU%F%1mdcl+G^ z-M4iA<+}@C0_eb(DkgOZ9M{p0<0`T>1XFTwG~}e_gdFZt;p)((SstE>X%#1R)Ja^6 zQ__4!#oapMxJQDYtGHLgFLX5FJ}JCknmwT5LFxXGiidTq!D(svh=xaXMDdu0$2B~m z;YkfoX?R-0Ga8=N@SKL{HN2qVMGa>(yrkh}4XV@v=XBnZ;B6JZ z)X|Awsdz_6m*ns2=#l)aj$X-stz)0$ztPbr`FjG!pyOC>f7Z452TQlB(ZDq%4SYrAnYIIgbVD4cvh{S#W4I zf(9Bmgc}Tu;4s_$@AL2e>-?*iUjNX*2jK8q{7#@rdihoD&$;84n>O#xO>@t`Z{Qq0 zVv9mi{WUJ7@|^~ceyhz3=ERu0b;YAv7%_+ILD;=)vHvuhgd53LJZmXum;$tQEZrz0CNe^~G zF1I{at%2pjy<5Xz!6FE(E=7|zf$X5^m=oON{s~MBO15%|l!LxTWvE~y#ODQ)65l^! zj*kl@=c(kG$T_UBCsbTnDA2m3@w_P?Ix=aE1>vg_KUOhf-@`fUtY_5D+x|5XP23`@ zkFha*V;(O^CZ94LR@7K-P55rwlvs2{%u8Il!eqz>&MOF+w)5<`*v#3tS)dI9+0X6BiB6KEOR)CQ#qBc`R9bx?(VzX$VB%X;i z&SCj18k3)*v52Njd_^R-X$~t3Xr`z^iVL{xrZx%Us|r|MinAu8s&iQDM{1$6DpEu= z6Tf^8SByv)_2IfQtn%UdGOYIDm1U^=PBt7PFMr z3f6thMwR@R`M9lu4If`s!L>f#Qo(gT-de%+K2DXeKl_;4F5ASJ2T%*cnlP*l!LaKB z&+3qA%m~3~2vvp90>@<`Wh8`R^dl8)(F2-)keaSLPx}>DLEHNnQk&-=S zNi8M4QnI%!siS0{lw4hw)Kk(YCHpCnrz-+^y8eT1j*UDmwfw8+8EZl_&)8b5M1oJ< zxQs`96;Io09OYN$32IKG1!r(M&f*HbHP_)QtjE{55`V`A{1+SX9X5$NY!)p@h^=T9 zdyy2wXcKqfD&b&@xDP4u47Q24uw9%(ySRWI;?L+1f5lF53A@C%=u{N!R$}Nm49GT`3Ct& z6<&+1#5?}&kwlcXar}&zQABx|b2ND!@#={*;|T8&V6F0hjA5KNiAA&=%J(#js5q*E pUxWA`Hq-nVRSIkzAn)d7(?>3U`vS(V;^5a);$0=)S>hc5{{gYm+$;b9 -- 2.34.1 From 926d8dac00a1e4915725aef2c65f8da5f2f67762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B0=8F=E5=B0=8F=E5=B0=8F=E5=98=89=E7=90=AA?= <2214521312@qq.com> Date: Wed, 16 Oct 2024 11:08:33 +0800 Subject: [PATCH 09/10] =?UTF-8?q?wjq=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 1 - src/Computer.java | 4 ---- 2 files changed, 5 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 0548357..1f014b5 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/src/Computer.java b/src/Computer.java index 2d070ca..ddac7c9 100644 --- a/src/Computer.java +++ b/src/Computer.java @@ -118,22 +118,18 @@ public class Computer extends JFrame{ } else if(flag == 1) { -//加法 b = Double.parseDouble(sz[0]) + Double.parseDouble(sz[1]); } else if(flag == 2) { -//减法 b = Double.parseDouble(sz[0]) - Double.parseDouble(sz[1]); } else if(flag == 3) { -//乘法 b = Double.parseDouble(sz[0]) * Double.parseDouble(sz[1]); } else if(flag == 4) { -//除法 b = Double.parseDouble(sz[0]) / Double.parseDouble(sz[1]); } -- 2.34.1 From 7cd733f37c43546cdbdf5be45f3597305a3b2f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B0=8F=E5=B0=8F=E5=B0=8F=E5=98=89=E7=90=AA?= <2214521312@qq.com> Date: Wed, 16 Oct 2024 11:16:38 +0800 Subject: [PATCH 10/10] =?UTF-8?q?wjq=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Computer.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Computer.java b/src/Computer.java index ddac7c9..6ebb92c 100644 --- a/src/Computer.java +++ b/src/Computer.java @@ -11,7 +11,6 @@ public class Computer extends JFrame{ public static void main(String[] args) { Computer t = new Computer(); } - public Computer() { this.setTitle("计算器"); Container c = getContentPane(); @@ -38,7 +37,6 @@ public class Computer extends JFrame{ aJButtons[13]=new JButton("/"); aJButtons[14]=new JButton("="); aJButtons[15]=new JButton("."); - aj.add(aJButtons[7]); aj.add(aJButtons[8]); aj.add(aJButtons[9]); @@ -58,7 +56,6 @@ public class Computer extends JFrame{ c.add(aj, BorderLayout.CENTER); setSize(400, 400); setVisible(true); - for(int i = 0; i < 10; i++) { final String o = aJButtons[i].getActionCommand(); aJButtons[i].addActionListener(new ActionListener() { -- 2.34.1