(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 179
下载积分: 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 个回复

  • LinearElasticWaves
    Cambridge University Press | ISBN:052164383X | 2001 | PDF | 178 pages | 1.8 Mb
    2009-06-26 18:05:28下载
    积分:1
  • CamSpeed
    利用Qt写界面,Geni库从工业摄像头取图片。然后对图片进行保存、播放。(Using the Qt write interface, the Geni library takes pictures from industrial cameras. Then save and play the picture.)
    2020-06-15 22:25:02下载
    积分:1
  • windows Socket server
    windows Socket server
    2022-08-02 17:47:26下载
    积分:1
  • mfcFont
    学习MFC字体的代码。(learning MFC font code.)
    2004-11-21 17:20:51下载
    积分:1
  • Multisim_10
    multisim软件是画图仿真领域的龙头,而这个文件是个好的开始(the multisim Software is drawing the the simulation field' s leading, and this document is a good start)
    2013-03-18 22:57:33下载
    积分:1
  • Java2图形设计卷I:AWT
    Java2图形设计卷I:AWT.pdf 详细介绍Java中的AWT(抽象窗口工具集)。主要内容包括同位体、轻量构件、剪贴板与数据传输、颜色、无鼠标操作、打印、布局管理器、国际化、串行化、滚动性、字体与字号以及AWT中的各种构件。(Java2 graphic design volume I:AWT.pdf)
    2017-11-13 20:54:01下载
    积分:1
  • palindrome
    c语言基础,判断一个字符串是否为回文的程序,仅供参考(Determine whether a string is a palindrome)
    2014-01-03 16:49:39下载
    积分:1
  • Labview-Programs
    几个练习使用Labview编程的产物,主要包括:1.正弦扫频信号发生器,可选择频率变化规律(不变、线性、指数变化)以及幅度变化规律(不变、线性、指数变化),还可以通过MathScript节点自定义频率、幅度变化规律; 2.声卡数据采集及频谱分析;3.会说话的小圆点;4.十六进制数布尔数组显示;5.在字符串中显示多种字体;6.钢琴键盘模拟(Several products by practicing Labview programming, including: 1 Sine sweep signal generator, selectable frequency variation (constant, linear, exponential change) and amplitude variation (constant, linear, exponential changes), you can also customize the frequency and amplitude variation through MathScript Node 2 sound card data acquisition and spectrum analysis 3 talking dots 4 hexadecimal to boolean array display 5 display a variety of fonts in the string 6. Piano keyboard simulation )
    2020-12-23 15:29:06下载
    积分:1
  • googleinterview
    google的一道JAVA面试题,有人用c写了一个,得出这些结果只用了几十毫秒!   有更好思路的可以讨论讨论。(google for a JAVA face questions, someone wrote a c obtained these results only dozens of milliseconds! Have a better idea of the discussion can be discussed.)
    2010-06-13 13:57:29下载
    积分:1
  • DopeDemoSyncVB.Net
    本源代码为Doli公司的同步控制源代码。其中列举了功能函数及回调函数的使用方法。(Doli' s source code control source code synchronized. Function which lists the function and the callback function to use.)
    2010-06-26 08:28:14下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载