(javaimplementationcalculator,importjava.awt.*importjava.awt.event.*importjavax.swing.*publicclassJiSuanQi{FramefLabellabButton[]bt=newButton[29]JTextFieldtStringBufferstr//displaycharacterstringdisplayeddoublex,y//xandyaretheoperandsintz//Zrepresentsanoperatorclicksthat0means"+",1indicates"-",2is"*",3is"/"staticdoublem//numberinmemoryJiSuanQi(){) - IMDN开发者社群-imdn.cn">
登录
首页 » Java » JiSuanQi

JiSuanQi

于 2013-05-24 发布 文件大小:2KB
0 205
下载积分: 1 下载次数: 3

代码说明:

  java实现计算器,import java.awt.* import java.awt.event.* import javax.swing.* public class JiSuanQi { Frame f Label lab Button[] bt=new Button[29] JTextField t StringBuffer str //显示屏所显示的字符串 double x,y //x和y都是运算数 int z //Z表示单击了那一个运算符.0表示"+",1表示"-",2表示"*",3表示"/" static double m //记忆的数字 JiSuanQi() {(java implementation calculator, import java.awt.* import java.awt.event.* import javax.swing.* public class JiSuanQi {Frame f Label lab Button [] bt = new Button [29] JTextField t StringBuffer str //display character string displayed double x, y //x and y are the operands int z //Z represents an operator clicks that 0 means " +" , 1 indicates " -" , 2 is " *" , 3 is " /" static double m //number in memory JiSuanQi () {)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • GUI
    这是我做一个日志管理系统的,登录界面!这个里面有很多控件的使用,很有参考性!(it is a good ui)
    2011-12-07 20:07:51下载
    积分:1
  • 使用Windows远终端协议RDP的工具,可以远访问Windows2000/Xp,和VNC类似,但功能强大,附带完整Source code....
    使用Windows远程终端协议RDP的工具,可以远程访问Windows2000/Xp,和VNC类似,但功能强大,附带完整Source code.-Windows remote terminal agreement RDP tools can be remotely accessed Windows2000/Xp and VNC similar, but powerful, fringe integrity Source code.
    2022-04-17 11:17:24下载
    积分:1
  • H264_Standard
    Draft ITU-T Recommendation and Final Draft International Standard of Joint Video Specification(ITU-T Rec.H.264 | ISO/IEC 14496-10 AVC) H.264编码标准,主体部分是中英文对照(Draft ITU-T Recommendation and Final Draf t International Standard of Joint Video Specif ication (ITU-T Rec.H.264 | ISO/IEC 14496-10 AV C) H.264 coding standard, the main part of the bilingual)
    2007-04-18 15:20:36下载
    积分:1
  • apache-ant-1.7.0-bin
    说明:  ant1.7 , built utils
    2020-06-22 18:00:01下载
    积分:1
  • jp
    说明:  一个基于日语汉字转化出拼音的源码一个基于日语汉字转化出拼音的源码(based on a Japanese into Chinese characters spelling out the source based on a Japanese into Chinese characters spelling out the source)
    2006-07-17 20:43:36下载
    积分:1
  • java-Struts-Hibernatelib
    ExtJs4.1+Jbpm4+SSH2+Oracle10g实际项目源码(ExtJs4.1+Jbpm4+SSH2+Oracle10g actual project source code)
    2014-12-02 11:28:41下载
    积分:1
  • baseCla
    利用虚函数手段,按照三种不同的数据存储方式及其处理方法来实现如下的所谓“反序输出问题”:从键盘输入n 个int 型数据先存储起来(具体n 值由用户从键盘输入),而后再按照与输入相反的顺序将这些数据显示在屏幕上。具体地说,可通过在基类baseCla 及其派生类method1Cla、method2Cla 和method3Cla中说明如下的同一个虚函数“virtual void reverseout() ”,来实现所述问题的三种不同处理方法。例如,可设计并使用已经在第四章和第六章的实践题中所使用的数据存储结构以及处理方法:(1)使用大小为100 的常界数组存放数据;(2)通过new 生成大小恰为n 的动态数组存放数据;(3)使用指针与链表的实现法。(err)
    2007-12-18 16:30:58下载
    积分:1
  • Taskbarprogress
    将进度条移植在任务栏上显示(VB示例),有需要的下。(Progress bar will be displayed on the taskbar transplantation (VB example), there is need for the next.)
    2013-08-23 11:30:52下载
    积分:1
  • dowted
    图形学画图MFC实现 可以画点画线,不错的程序,(Graphics drawing MFC implementation can draw the dotted line, a good program,)
    2017-08-21 20:38:58下载
    积分:1
  • Jukebox
    JukeBox is the part of the task
    2011-12-27 01:05:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载