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

  • 745454
    网络服务,精选C#编程学习源码,很好的参考资料。(Network service, select learning C# programming source code, a good reference.)
    2013-12-15 10:53:33下载
    积分:1
  • defjava2
    JAVA读取DXF文件中的基本信息,可以自己进行扩展,还不错(java read dxf file information)
    2013-10-16 16:13:38下载
    积分:1
  • labview示波器
    一个基于Labview的双路示波器,功能齐全,程序清晰,易于新手掌握(A two - way oscilloscope based on Labview, full of functions, clear program, easy to master)
    2018-01-24 14:31:28下载
    积分:1
  • msvcrt-v5
    microsoft visual studio c++ runtime library version 5
    2010-07-26 01:00:32下载
    积分:1
  • PROTECT
    This program is used to lock bmp files. This will change the header of the bmp format.
    2009-06-15 18:22:58下载
    积分:1
  • area
    定义一个基类MyGraph,要求有一个纯虚函数double Area()=0。从基类派生一个圆类Circle和矩形类Rectangle,再由Rectangle类派生出Square类,分别给出Area()实现。 重载“>>”,实现对图形信息的输入。在主函数中计算三种形状的面积,并显示输出。 (Define a base class MyGraph, requires a pure virtual function double Area () = 0. Derive a circle and a rectangle class Rectangle Circle class from the base class, and then by Square Rectangle class derived class, are given Area () implementation. Reload " > > " to achieve the input of graphical information. Calculate the shape of the three main functions in the area, and display output.)
    2014-02-07 23:13:19下载
    积分:1
  • java.net库的C++实现。方面C++序员写网络序,更方面JAVA to C++序员。...
    java.net库的C++实现。方面C++程序员编写网络程序,更方面JAVA to C++程序员。-java.net library C++ realize. Aspects of C++ Programmers procedures to prepare the network, but also aspects of JAVA to C++ Programmers.
    2023-08-25 07:15:03下载
    积分:1
  • AddService
    在Eclipse上编写的简单网格计算(加法运算),内容简单,但包含了网格计算的基本步骤。(In Eclipse to write a simple grid computing (addition operator), the content is simple, but contains the basic steps of grid computing.)
    2010-10-29 09:21:27下载
    积分:1
  • javabasic2
    基本的java小程序,需要的可以看看,能使吸纳基本功能(Basic java applets, need to look at, to make the basic functions to absorb)
    2014-05-03 20:36:58下载
    积分:1
  • The-sysytem-of-library
    图书馆管理系统 Java源代码 图书馆管理系统 Java源代码(the Java code of library system the Java code of library system )
    2014-06-12 22:59:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载