From c70a79b85f2c566cea7e3ec70cd24f27fbbdb54c Mon Sep 17 00:00:00 2001 From: volcano <3062623433@qq.com> Date: Fri, 12 Apr 2024 21:25:13 +0800 Subject: [PATCH] code --- .../production/System/CalculatorWindow.class | Bin 0 -> 5310 bytes .../out/production/System/Computer.class | Bin 0 -> 3340 bytes src/System/out/production/System/Fu.class | Bin 0 -> 1064 bytes .../out/production/System/HandleBack.class | Bin 0 -> 614 bytes .../out/production/System/HandleClear.class | Bin 0 -> 612 bytes .../out/production/System/HandleDight.class | Bin 0 -> 1437 bytes .../production/System/HandleEquation.class | Bin 0 -> 1650 bytes .../out/production/System/HandleEvent.class | Bin 0 -> 1977 bytes .../out/production/System/HandleFile.class | Bin 0 -> 2083 bytes .../out/production/System/HandleFu.class | Bin 0 -> 652 bytes .../production/System/HandleOperator.class | Bin 0 -> 986 bytes .../production/System/HandleReciprocal.class | Bin 0 -> 684 bytes .../out/production/System/HandleSqrt.class | Bin 0 -> 660 bytes .../out/production/System/MathComputer.class | Bin 0 -> 138 bytes .../out/production/System/Reciprocal.class | Bin 0 -> 1089 bytes src/System/out/production/System/Sqrt.class | Bin 0 -> 1116 bytes src/System/out/production/System/test.class | Bin 0 -> 430 bytes src/System/src/Fu.java | 14 ++++++ src/System/src/HandleBack.java | 13 ++++++ src/System/src/HandleClear.java | 13 ++++++ src/System/src/HandleDight.java | 21 +++++++++ src/System/src/HandleEquation.java | 23 ++++++++++ src/System/src/HandleEvent.java | 31 +++++++++++++ src/System/src/HandleFile.java | 42 ++++++++++++++++++ src/System/src/HandleFu.java | 13 ++++++ src/System/src/HandleOperator.java | 18 ++++++++ src/System/src/HandleReciprocal.java | 13 ++++++ src/System/src/HandleSqrt.java | 13 ++++++ src/System/src/MathComputer.java | 3 ++ src/System/src/Reciprocal.java | 14 ++++++ src/System/src/Sqrt.java | 15 +++++++ src/System/src/test.java | 5 +++ src/test.txt | 1 - 33 files changed, 251 insertions(+), 1 deletion(-) create mode 100644 src/System/out/production/System/CalculatorWindow.class create mode 100644 src/System/out/production/System/Computer.class create mode 100644 src/System/out/production/System/Fu.class create mode 100644 src/System/out/production/System/HandleBack.class create mode 100644 src/System/out/production/System/HandleClear.class create mode 100644 src/System/out/production/System/HandleDight.class create mode 100644 src/System/out/production/System/HandleEquation.class create mode 100644 src/System/out/production/System/HandleEvent.class create mode 100644 src/System/out/production/System/HandleFile.class create mode 100644 src/System/out/production/System/HandleFu.class create mode 100644 src/System/out/production/System/HandleOperator.class create mode 100644 src/System/out/production/System/HandleReciprocal.class create mode 100644 src/System/out/production/System/HandleSqrt.class create mode 100644 src/System/out/production/System/MathComputer.class create mode 100644 src/System/out/production/System/Reciprocal.class create mode 100644 src/System/out/production/System/Sqrt.class create mode 100644 src/System/out/production/System/test.class create mode 100644 src/System/src/Fu.java create mode 100644 src/System/src/HandleBack.java create mode 100644 src/System/src/HandleClear.java create mode 100644 src/System/src/HandleDight.java create mode 100644 src/System/src/HandleEquation.java create mode 100644 src/System/src/HandleEvent.java create mode 100644 src/System/src/HandleFile.java create mode 100644 src/System/src/HandleFu.java create mode 100644 src/System/src/HandleOperator.java create mode 100644 src/System/src/HandleReciprocal.java create mode 100644 src/System/src/HandleSqrt.java create mode 100644 src/System/src/MathComputer.java create mode 100644 src/System/src/Reciprocal.java create mode 100644 src/System/src/Sqrt.java create mode 100644 src/System/src/test.java delete mode 100644 src/test.txt diff --git a/src/System/out/production/System/CalculatorWindow.class b/src/System/out/production/System/CalculatorWindow.class new file mode 100644 index 0000000000000000000000000000000000000000..d96fb96e905322142e21af71304bd134fef4c692 GIT binary patch literal 5310 zcmaJ_33yc175?vgGxH`d4+sMxi4as&2ni4fDoX?;fj~5%5(Gy@`;t78r;~YMW&&|( z)fVekt5&<%&9!y6)tZTQT)J58YBy{5#a7(f+TB{${^!0)GC|t!X?*30a<$?QaV9Em^eLZ^!W+3*WU-6Vl%k>@iuM5VKE-%J(h&z{Vk=zz+p` zGL9b!e8R$yMeJz{Ke17V;W(ZV_)}SaCd_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BXs)+&??WGVg72z! zGsv}xPdG0aDuf^!Fht4nl(8FoC@C2+uHq<3ZE-Xd{R#e)-^2J0f$Fv{`Yi(C-Pd52 z5S*!=*H^=JAVBjb25LqJKQ!CXf4=0VA@nKQxT`Cn z;TKpXG#*(&kcH{{dVSv*?fVYRRBFD$g=f?Zm(ViW6CSvPjnOsceF^HWV7e!K$A9k@ z^xgiRaP+@-%ld9}Pk87OI@bBjuEuBPepU$_X0<>&JJ>;xJJExU>~A;W-At%^un$`? z&fXto_n+m>Jn?yvoqvtJ{e->$oSnalevMYIZd|F1mJi?JZfYyq=jrDj-tK3tW|%k7 z<2PDwpkH-&cTr&&2RvADo{9LVw5K~f_ysl)kwAC3c`Mi=Vt7!?8$Q!WR&J%AUPWF% zhfv2n+DVihxQn~Hb%q_D^Kym^qw`WaF9W{zO-y5CwZ|w@Td250_mG`sj~jGLSJ1Mi zSx5S=tc$;&w!=j90NQYnxQ*7t-%&wm8}9@m!Nr8{2HO0M6z`?F$LAqFS)mP-P$&2fPuCB4u3(zV*tLR_# z&WM0es&Xu7#CSkM&Hl(Ww9BNe;KI5qX5Zn_eV;)CqDfKaWH``n2>-3FKqN67Six?} z$XkyIVVGNX-^8$A`J0=q zzaS&R{{XnkgZC#}D7JAAc6MYf7q9$;PQHU(6HPJyKBHa0W_LDzh0X!lwi_jEDxrJk zqM=s)`D37j&DYQqTY-7NXo^LyFv=m~^9T|0=IKt730Ne0NoKOlw;)A6r#U+rvM5dM z=cw<}B2OF(thuO>*vl+;QhS^l25)?%uhvGu5l33=m>Ro?tbI+Ljo%1Ld;mz+zz?U<>y-J6FqeAv&@<++-9Xj?lEt#o#r yo%is)pU&k83Jyenz*Zk$H~GHFTN%>lFLPSXYiHhT60GzvNDLmO7sYDDX6j!ig_3#z literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/Fu.class b/src/System/out/production/System/Fu.class new file mode 100644 index 0000000000000000000000000000000000000000..7e2096a19fe9009f3e29445e9dc098cd96ac533b GIT binary patch literal 1064 zcmZ8f+g1``6#jk&7#znGlr%e^2-Kv5*#S!pL^06HmR*nd2V=uwjWhHDJxMoRw^oZ> zUGxB5^$xv77uNR!33V}h_P_VH58vMV`|;Or02c7Vz$sjhAYtGJl0y_J12dR4Fo&B4 z=8;ymTk3h+z#ZIGV!^;YEb6$gXr14=i2oOvk8}9j>&dBtNgZPH9IwRJYs^KhVPbT-d4r*yg#qP zO^hKb038_ge@K03jSOm zkoN_~`fY9R9mujLV3sVe`j^~4h;HKokpXYHH-#K|7d%<(OqrYv>dlw((07_I2XP;4(&d?c~VQ5Ae@jQ^xp8^Ut*-H1h@GQ^!3{ z8SWSbCa9ZT0OB~!m%t>ZC{^$eXhZ_*u|R3I4Q+GwGlHojgxUzdPQBZts+VYsv@xVD zhT@^QHjEFLR;IZ)QNu?t7505deEj`WmDixk&%mGz@)bgaB_?>6lhn>(2v_M#V;C#^ z=gCX8xIkP2mv9Et)Ywq3S*4w26z9nMJ&y}yAHgy%60314V0_>h2_087@r!1`^lC)c F{s0&$+#CP^ literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleBack.class b/src/System/out/production/System/HandleBack.class new file mode 100644 index 0000000000000000000000000000000000000000..d44cb4bccf78566d1514179bbb9868546b321f74 GIT binary patch literal 614 zcmaJ;+e*Vg5Ix&lnlv`vT5r{QtJVtk#W$s(MG*`lDD`=ptQbwRB~9#i38jJ$et;h( zPGYs9U;?{yX3se@v-|e`@(N%d+Zq(ismNen#R3*JETNv@<94Gj%UmM!A^@I)s(hiFigi27h$I@{A=EJDKl+Ki@PoEI}siwQ^B3nW6;er z?%A$5=GMaj73s%*k>*bgvgTIcNbgekx6R9(L`BCIDx@9@7;>K=F3&Le zdj^KAB|F_P5Izab<|wAYvtKcT+NQhcb-6{|B&+ew_U>e#N@wVeqAvjwK&4e9)F7Oo zJyY9#278LnbF^x4HjOmtbi&0?7ABA9M0#wR bN0N>;`g3HX|1dVbjSb9THa0F0H-X{@n&f<~ literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleClear.class b/src/System/out/production/System/HandleClear.class new file mode 100644 index 0000000000000000000000000000000000000000..72a2d9926533294a9a0067eafb91a0b0cd050be4 GIT binary patch literal 612 zcmaKp+e*Vg5QhIv+oVaO(Rx0gwN|h<-YJ3vMKFk<==C;TF_LB_O`7Ktih>tDfDa|k z#;QfZ1a{}2o%v>F_wD`V6~G?0EEt$Fp<~*_3}!9NVcsISU|`X}5`%saL_u=MFj4bd z9{Op>6B*wGQA=j~+t&<5SGEL$;{}m8PuooqU-4#0o~kE(9$xb}P`d9dCU-%HVaPk> zQ7aT~D0sY2Rk9qYlKvDSHusZ2Mi(N!m2q3N7?x_@J@4`c&yt4diYRFuO-HjQ5Xvgs<-RWlT7`Mq}TWJYCmdLi{`pjeo+TBHt1Yqab2ooBGe z{JcV|m3vDlQJzhD@-qrU7$!yWY9L}TjH23SozbpXPQ3@Mhr$zz^(T~mpu;H8u|ZC4XV6n=(mvdJ<)jDTouwJ&M_N&2F;6`_ShDl{Mp#Zvp?WHTmflU>fT5r0nq zLeKH6J?%L?{oFs}Kk)d>CSbsxe#q?HJ9nP@JonzozpwuM8^ATR98BV42cO_m8=pBy z;hKZ%xM7yhbC|#vIedwm4(4&op}Amoi)QzgIr!Sfl7mq!XHhZVY8JQ6cg4XsxMO40 z#+pFpmgjrXqQFG4R#9!Y+g4E!KJffTa43(SbL(L zs$y`Z-8o8_%2^!z4M2~s=%f43P@r`#muS$Ut#n&q|S zZWIMRuiN#=-%uTbq#K4jqbt<26)E@Eb+wnsWH)SlE8uJe-O$x5o+(FuKyk^CmpFqd z8#Re_YzUk-z7zQ*?qZWr68EqvaUWX}@8N=tZHe!&W8;Cu_t=&A0S_g9#7`1G;}?lX zPy%O?3Jr)~?t1Np4o%*Nq>Q$M%>P&yNwf;^}sSY%*$ZPy3wWx&9On^l1KV?0(yfj40@(6PP?UEl23ACiV5I z$p?F~S$r9IpYMN?{~y2*I3$?jdY0BA?IC_MGqW!seoxNNadmoLq+#P7+LL|zJl>_n zcr%g25V%O}9@b0#7iD;+W@8NfgVg%f7*>q*##|~!=7u%%9QJc$C+N$~#Be68eCan_ z@4I6R{{eY3-7`o2!szY`j1}@RPMuA2DHOQGI2~i$&`iP5yo?;zVPqkZ#|VXu;zNw# z3at`OVF3j`i}6IlBFQcA^aK9Vh9(ZhD13xV6p_U)5wB2co=>mHxD*lBFpU{lnB^S_ S@d}S@T(vQ0#FywBLish}QAsZV literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleEquation.class b/src/System/out/production/System/HandleEquation.class new file mode 100644 index 0000000000000000000000000000000000000000..d641b9daaf7a6f0e419d683ac99dd082ecc85eeb GIT binary patch literal 1650 zcmaJ?TW=Fb6#gc5yz9*-4o*TS4PYp=cDNWqS_-+);3NdPhBR?Q>6OWPFq_)D&U#IF zLCPa9C=wD>>L2I}4)7B=RPw=B>Hv=VqnB2S`Eo_JC~gG zT+7Z8oAz0cn?I*{(dVt;GJ`hjlwDIyTC%vV&HPVDDmwP!Lk8$Lh(ij#)L|g4;EIl` znAY)?9A+@h(CZW5knlp;%4dZu0cMF*Oh*P^%Ypja7JI$&==I9|e_pJT{~EsWUCR&N zJbWTu3a;z;7T@{am&gP&j8tt-?NjS>+Eou3=N`Z0i2^Z-C&n4VIpNKSQaMlA+G(B< zg<{>N2r50qi$!6R*2imFZ)n+2qDi(|7b$&Te0-;6)pM#sGjzwB0|}sGz4|owZqX?( zExN=rNWetBjp$x23Rk`gemNg z6YaQ*4m?H#f1wj^5oIUQ#SC;aixic*#;S_db!7`Uf{#hh0L$SM#7Xr8MeRcHKbQ*o T*D$pPV~wsThNHC5f@A*!70QmL literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleEvent.class b/src/System/out/production/System/HandleEvent.class new file mode 100644 index 0000000000000000000000000000000000000000..186e21e24bb2dff1181550509a7bcc7761487446 GIT binary patch literal 1977 zcmaJ?TUQ%p6x~CnOfn2mQwX$DN~>Z>OXIaw+oCiSTbe*ENX7dk`5J~!W@0h{yws|X z{sG^7w6D5W4PACEm(TtS|45hnOcD|`I5h%{_!V(*YJaham>VU5^u-w z4rUEpHKAiBij4f96Xi7%^LW>!&vnt=FtLD}V#tai7sa9oOCsD7hxbg}ZaOTBZY7HM z4Xm0N!5uk1FtLUY#qlFKJ~r@)flm#5rlEJs@rwSIhIlq(yM?-I2Y&TVsJle#Wyf=Z z84bh9gXXDK4SL2eDh-2K$5V^-a$Z$e?7T}&JnI*1ch#;sBDa)!uu5Y01$p*5`$rg)>N5n80ZR6!Iu&7}-zyYTa>*inJpWS0*eJp)A}* z$-ue=2OAd7;+%zha1E3#cAt9VXHcR-3Z} z`$nM3oKd@99hJ^IO58Em_e!g_Tjz?i9Ix0whhNSP)~UAhyszTVCXO9;wL4(Ok_-Qh z6{q=?IL@s-#Rqb8cIe-XHgAq~0_?e`X zXnNyCBq=d2%*v~SDWqCC{|RdV4^xlO^9YeA(ARcwB;MPA(Nsknh&_f$xq-e0tfscV z<+$rJ(DaE9?sGia&M1am?`Il_cU+G(^+Sic4tE#t5KiC-DfN+x#UF@%+-D1Z!C*+- zA~{lO5s%6DNQ>@Yq}xkdE}qCe!N}U=4n`NJ8#sPZpG@dKmLB88z)wHpL>ozhpeGx6 zmeg|(G1{$8=nagC{@kxj7zw8^&Itf6ikmndf=dws0bm;E!?*>c z@e(IxVHPjr6~@MK39s_!RLAS|=ts{}TrlMCqCP|(Z{W=q8!^j5Xq~q7hSbNq=CAF} PU&C9>Ec3q{2449WKKQ?X literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleFile.class b/src/System/out/production/System/HandleFile.class new file mode 100644 index 0000000000000000000000000000000000000000..c9e0a998d612d8bee7a2a40d8e3073cf66038680 GIT binary patch literal 2083 zcmZuyNpllN6#m9YZfiVV@PaLN5&{MjlzkCkf{oc?13|=&5<)T_wd^tSj2VqAI}0HR z+3u-IRgO78<>)F(u8OLtaN&@Dl7EoOA>?}_S;F8;PrvQ!*WY`u=db_%cmUu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Q3SQ#5ZNxmt{i{e2c|ZTh!z|cYtl)LL!9q(p%^M2TCOIvH$=8 literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleFu.class b/src/System/out/production/System/HandleFu.class new file mode 100644 index 0000000000000000000000000000000000000000..58231af10b35b0299fb9247eed7123f60fd81132 GIT binary patch literal 652 zcmaJ;+e*Vg5Ivh-(x&lJwefzx#a8T#Z;Bwr;zJZsQG8s}l}6I6#KeA=AT22P0e+M? zo3;uHzU`%I7+A!TLGZGU6&67yGmw*NmM1f9|vIELBy0hg<7wkEy57B8PXa*T%F-*DDV_^iNlo4OeOBxL0nCNSr wBbBhM@(Z*Vq~4Ie=_1o1@ecGK?P21n4n=ZNA{RgU*0;Vz6)Vx7B(8?3FUa|X3IG5A literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/HandleOperator.class b/src/System/out/production/System/HandleOperator.class new file mode 100644 index 0000000000000000000000000000000000000000..0dbdfbf47f8547d6e5e35028d2930eecd0136e52 GIT binary patch literal 986 zcmaJ=TTc@~7(LS#wp~`JKt&M+L}l9o^@4Z-QD`)3Dwsg1jUDAgUZJPB|$xNnpS9ZnLFz7?6-v z)xnl*#FNBGb;b;-|5ryKv#)fQ zu)w&R?}`-9w_QC{o;Kq%Wmlc({)9gQWcx+oE>N5XpVB*!(FQA1?%O=I$@V`e)$_u} zQA?|c%2mp}yHWM*&T*PbpY4ZfRgSlAo+fwgH#6tTZ_pK z23JyrQ&^`+=jh86IJ#5@*Ef)@=e8CYh>?8!hz z`wV5rt#RLL`#e(Nl?)oHv%67eNYzwBFpRh|5U1_djR-IKjZa9)RUY^2Je0ccfvKn| zA2fH&gN858g(vSrt=pwho!C{gen`M> zsXADsCFW??KmuflJe?MG`_w1so2hKRf<49j5S?a>rjbSl!_?bd6-H2?j`aHe$F1_fYX@A(=+X}xva_>ZV@OqHLogIvKNKhJR$W9FydF?y*p(g+YCQ5a?j=*I z>EAP0?hy|gfjGa5)D8{l#Cp2t&kU00p7LdQDxzx{wM2tq-f?gE1F!Ios)z>>s>*&$ zInZ(Jijjet|40nxxok(CIP|sILf_ApmbPFbZ=r}`1Irdxuu3o0ZgpYJfMa1DWeXcv zBc*;bL%s`QD-1)w-@}mgWb3xAL`02lwHMP8l8#fpQ9UHpAh zc2J_v%F&+!36LQ2bXtV=2q);yls8_$9^?7|oo1X(BaI9O3EN#33K$|peEnw9U>Lz@ zPwNcHm}Qrrka$A!4XLXaq@PLr8Ae}wka&7Rkz9FDtPuk&%H1S&WfE03@oPlbDyT@1K;Fnq0!h$iT?J1hkETfsuug Qfti5?#A09tl1vP204lQ}WdHyG literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/Reciprocal.class b/src/System/out/production/System/Reciprocal.class new file mode 100644 index 0000000000000000000000000000000000000000..903963bc8b999a00c4eb9a07f5801ee02d93b8f9 GIT binary patch literal 1089 zcmZ8g%U07+6y2A!O$ou$LKX3?2rVE*MSK)_*cK_apy0xB2(b;Oj}?-BfnVapv1_?1 z%Yh%@%x~~79H9HAl~xBiInRBb_xtJBZvYnYO2awaj$%r~G*W{kX$>=&)i8%U8s?Fa zx&5@C0W$)081(!s(7U0u|QlLC2mtUS>d!AvwD;v!qw~8kO*lYN%X>HgtS*%yX zyoAv)g17)wWOXd#sg4z_s#w#pj%O-zI`Sx}*wFDDn>vbE)v<**fpxq8WD*0S6 zY51P)a2o8L!|2PLZ}`Dt)Ry7+*3MgjWGbKTn_$O*L9w9R9u61K^pC3oQ>i}pPAA!Z zgsw_pXfxPop=H%sm{PGw|I2o^uc%yZr>VGW)fz2p-Ej(zRbwo79C56A#ba{b8&4r( zRt(^b literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/Sqrt.class b/src/System/out/production/System/Sqrt.class new file mode 100644 index 0000000000000000000000000000000000000000..9bde3d4eb633ef2983b235327994b9ca0ba6e1bc GIT binary patch literal 1116 zcmZ8g*;dm~6y3LJn>GZH0uDIg0H%P{0dXh}(1H|OP>S#zN^FDaV4Cy`{1RV$b}d(B z`QQim=r8yeKA`)il~x~e?#(&p?z8u~=YBu_`VGJW_B0G*I))n>3?$<;Ga6 zU){Id9dqBICy}q0OlQ}0ZTa7IhP{g2Bu2jY&h^sVRLt6e%pNrInR>P1dzPD)u)^k- zBm9BsnF3lbNCUZ}|HC}2~^7FKk;M1s&d zUSV5D5j!eg%VV-95?|m{kK)$;p;e+wFPL8Cuh4%oIwAyOebG|4BU$z!=ULUD=hUZh z-`KXAzC*~7PA7cNcGwB(W+VD4XX}1&9cs&Td~55Cz_^i3_I0n5z(d0U-5w5gH2h{o zVA|+Q?u z%UX7vRmZCGtQ;W6s+DC04k4!`TB?}tGU38TE}0P+?Gec^VwN~o0%wg(Kkbu98dosH z_rbpLv4psCC}>Cdm*UF#KxF0%#HS!UMjH*Bq|d$HNx*5G;UCN39IZV30}3;NTq0DM zZA00Z{fuz(2$43TdtB8GnplC}cpI9s7#WYuwK4Dk6Vf#|&OH4HgEISlM11`HQxZ@h z3CuvFjRXZ^9N#g-ST>GJ^iN@ck6FhG*L5nBBo~-#U=kBJ&mAds>B`*&TqI!yYdn3K f`eS?qlkACttIQlk=op5IYl`^Au)uXXLzwylAlm6~ literal 0 HcmV?d00001 diff --git a/src/System/out/production/System/test.class b/src/System/out/production/System/test.class new file mode 100644 index 0000000000000000000000000000000000000000..b5394484eb7e8ca0e3813fa9a1d950f129671a5f GIT binary patch literal 430 zcmZutO-sW-6r4@drj6Css!@;Lst0rNRuQD&Dd?e65l@>m#4YIt(rx>@JQWoD0sbg) zHWdou9^S{id9%a&`hNceaD`JJbsTvJd^k2AdpHqjTq~{2jXnOk221Q^r9k>`B;|9_P?NOUe%l$kxA!f!0nk-S|I4ZL{qtxVJ>wRj!da^HmKBP znUR0+&se}oR`#2r%#%efO;J86Jt_TS2T)$XDyj9~CW1|9TfOUIAzz!>*g0)//取绝对值 + s=""+r; + else + s=""+n;//小数部分为0则省略 + return s; + } + + @Override + public void actionPerformed(ActionEvent e) { + } +} diff --git a/src/System/src/HandleFile.java b/src/System/src/HandleFile.java new file mode 100644 index 0000000..b7396b1 --- /dev/null +++ b/src/System/src/HandleFile.java @@ -0,0 +1,42 @@ +import javax.swing.*; +import java.awt.event.ActionEvent; +import java.io.*; + +public class HandleFile extends HandleEvent{ + public HandleFile(CalculatorWindow window) { + super(window); + } + + @Override + public void actionPerformed(ActionEvent e) { + if(e.getSource()==window.copyBtn){ + window.computerProcess.copy(); + } + if(e.getSource()==window.clearTextBtn){ + window.computerProcess.setText(null); + } + if(e.getSource()==window.saveBtn){ + JFileChooser chooser=new JFileChooser(); + int state=chooser.showSaveDialog(null); + File file =chooser.getSelectedFile(); + if(file!=null&&state==JFileChooser.APPROVE_OPTION){ + try { + String content=window.computerProcess.getText(); + StringReader reader=new StringReader(content); + BufferedReader in=new BufferedReader(reader); + FileWriter fw=new FileWriter(file); + BufferedWriter out=new BufferedWriter(fw); + String s=null; + while ((s=in.readLine())!=null){ + out.write(s); + out.newLine(); + } + in.close(); + out.close(); + }catch (IOException exception){ + + } + } + } + } +} diff --git a/src/System/src/HandleFu.java b/src/System/src/HandleFu.java new file mode 100644 index 0000000..3734bdd --- /dev/null +++ b/src/System/src/HandleFu.java @@ -0,0 +1,13 @@ +import java.awt.event.ActionEvent; + +public class HandleFu extends HandleEvent{ + public HandleFu(CalculatorWindow window) { + super(window); + } + + @Override + public void actionPerformed(ActionEvent e) { + window.computer.initMath(new Fu()); + show(); + } +} diff --git a/src/System/src/HandleOperator.java b/src/System/src/HandleOperator.java new file mode 100644 index 0000000..93fc991 --- /dev/null +++ b/src/System/src/HandleOperator.java @@ -0,0 +1,18 @@ +import javax.swing.*; +import java.awt.event.ActionEvent; + +public class HandleOperator extends HandleEvent{ + public HandleOperator(CalculatorWindow window) { + super(window); + } + + @Override + public void actionPerformed(ActionEvent e) { + JButton b=(JButton) e.getSource(); + String btnName; + btnName=b.getText().trim();//去除前后空白区 + char operator=btnName.charAt(0); + window.computer.setOperator(operator); + show(); + } +} diff --git a/src/System/src/HandleReciprocal.java b/src/System/src/HandleReciprocal.java new file mode 100644 index 0000000..bdd79c7 --- /dev/null +++ b/src/System/src/HandleReciprocal.java @@ -0,0 +1,13 @@ +import java.awt.event.ActionEvent; + +public class HandleReciprocal extends HandleEvent{ + public HandleReciprocal(CalculatorWindow window) { + super(window); + } + + @Override + public void actionPerformed(ActionEvent e) { + window.computer.initMath(new Reciprocal()); + show(); + } +} diff --git a/src/System/src/HandleSqrt.java b/src/System/src/HandleSqrt.java new file mode 100644 index 0000000..90b41a6 --- /dev/null +++ b/src/System/src/HandleSqrt.java @@ -0,0 +1,13 @@ +import java.awt.event.ActionEvent; + +public class HandleSqrt extends HandleEvent{ + public HandleSqrt(CalculatorWindow window) { + super(window); + } + + @Override + public void actionPerformed(ActionEvent e) { + window.computer.initMath(new Sqrt()); + show(); + } +} diff --git a/src/System/src/MathComputer.java b/src/System/src/MathComputer.java new file mode 100644 index 0000000..eb7c386 --- /dev/null +++ b/src/System/src/MathComputer.java @@ -0,0 +1,3 @@ +public interface MathComputer { + public void handle(Computer data); +} diff --git a/src/System/src/Reciprocal.java b/src/System/src/Reciprocal.java new file mode 100644 index 0000000..aa7ac7c --- /dev/null +++ b/src/System/src/Reciprocal.java @@ -0,0 +1,14 @@ +public class Reciprocal implements MathComputer{ + @Override + public void handle(Computer data) { + String s=""; + double r= data.computerDataItem(); + data.tempResult.push(r); + r=1/r; + s=HandleEvent.get(r); + data.dataItem.removeAllElements(); + for (int i = 0; i < s.length(); i++) { + data.dataItem.push(s.charAt(i)); + } + } +} diff --git a/src/System/src/Sqrt.java b/src/System/src/Sqrt.java new file mode 100644 index 0000000..8bc3585 --- /dev/null +++ b/src/System/src/Sqrt.java @@ -0,0 +1,15 @@ +public class Sqrt implements MathComputer{ + + @Override + public void handle(Computer data) { + String s=""; + double r=data.computerDataItem(); + data.tempResult.push(r); + r=Math.sqrt(r); + s=HandleEvent.get(r); + data.dataItem.removeAllElements(); + for (int i = 0; i < s.length(); i++) { + data.dataItem.push(s.charAt(i)); + } + } +} diff --git a/src/System/src/test.java b/src/System/src/test.java new file mode 100644 index 0000000..316503b --- /dev/null +++ b/src/System/src/test.java @@ -0,0 +1,5 @@ +public class test { + public static void main(String[] args) { + CalculatorWindow cw=new CalculatorWindow(); + } +} diff --git a/src/test.txt b/src/test.txt deleted file mode 100644 index 062779c..0000000 --- a/src/test.txt +++ /dev/null @@ -1 +0,0 @@ -测试git上传。。。 \ No newline at end of file