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

  • CRM(v1.1)
    crm的详细解释于搭建,有助于大家互相学习。有丰富的客户需求以及解决方案(sda wrewf sdf waer erv edwfv ewfsefvs)
    2012-06-06 21:50:38下载
    积分:1
  • Programming-questions
    Programming questions for every one
    2020-10-25 15:10:00下载
    积分:1
  • UART串口通讯的使用软件编程很好是实现
    UART串口通讯的使用软件编程很好是实现-UART serial communication programming using software implementation are very good
    2022-07-24 13:25:42下载
    积分:1
  • 网上聊天室,一个简单的程序例子,可以帮助初学者学习网…
    网络聊天室,一个简单的例子程序,可以帮助初学者学习网络编程.-Internet chat rooms, a simple procedure example, can help beginners learning network programming.
    2023-06-08 23:15:13下载
    积分:1
  • 2500011
    IP地址映射表源码,例程程序结合易语言多线程支持库,调用API函数实现枚举IP地址映射表。(Source IP address mapping table , a routine procedure combining easy language support for multithreading library , call the API functions to enumerate IP address mapping table.)
    2015-06-19 11:12:38下载
    积分:1
  • simulasiPemdelanKanal
    simulasi pemodalan kanal
    2009-11-18 08:06:55下载
    积分:1
  • 4VBScript-interactive-XML
    针对VBScript 在输入大批数据时所表现出的不足,提出了以XML 文件为载体,利用VB.net 设计的交互程序将大批数据写入XML 文件完成参数预定义,VBScrip 程序通过查询XML 文件获取参数值,从而取代inputbox 函数的单一交互方式,实现了VBScrip 交互性能的优化。该优化方法在域环境下的登录脚本中已成功使用,结果表明该方法使用方便,提高了VBScript 程序在输入大批量参数时的执行效率。(For VBScript in the input data is shown by the large number of deficiencies, proposed an XML file as a carrier, the use of VB. net interactive program designed to write data to an XML file to complete a large number of predefined parameters, VBScrip program by querying the XML file for parameter values, thereby replacing the inputbox function to a single interaction, enabling a VBScrip interactive performance optimization. The optimization method in a domain environment logon script has been successfully used, the results show that the method is easy to use, improve the VBScript program parameters in the input bulk execution efficiency.)
    2013-11-08 08:45:13下载
    积分:1
  • jqueryPuichiness
    jquery ui 1.10中文api。有关jquery ui的一些功能及效果的中文文档,包括demo和api。(jquery ui 1.10中文api。有关jquery ui的一些功能及效果的中文文档,包括demo和api。 JQuery UI 1.10 Chinese api. Some function and the effect of jQuery UI on the Chinese document, including demo and api.)
    2013-12-30 21:10:04下载
    积分:1
  • 三维装箱MATLAB程序
    说明:  基于MATLAB20,能够解决常规的三维装箱问题(Solving the conventional three-dimensional packing problem)
    2021-03-17 20:19:20下载
    积分:1
  • udf
    用于fluent模拟冷凝情况的UDF,它是基于压力的变化的蒸发冷凝相变模型。(UDF for fluent simulation of condensation, which is a pressure-based, evaporative condensation phase change model.)
    2017-11-09 17:44:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载