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

  • 序为asp+sql搭建,能够为您的企业或者部门搭建一个稳定的企业招聘平台! 有的朋友可能比较喜欢access数据库类型的,但是如果你真想把网站做大的话,...
    本程序为asp+sql搭建,能够为您的企业或者部门搭建一个稳定的企业招聘平台! 有的朋友可能比较喜欢access数据库类型的,但是如果你真想把网站做大的话,你 还是应该考虑采用sql数据库,具有一定的吞吐量! 版权非我所有,网络是共享的,只要你有能力就可以自己任意的增加修改功能! 21sji_job.bak是备份数据库,你可以通过sql2000还原他就可以! 管理员:admin 密码:admin-the asp sql procedures for structures, to your business or departments to set up a stable platform for enterprises to recruit! Some friends may prefer the type of database access, but if you really want to make the websites, you should still consider using sql database and to a certain extent the throughput! Copyright myself all, the network is shared, as long as you have the ability on their own to amend the increase in arbitrary function! 21sji_job.bak backup database, you can restore his MACHINE! Administrators : admin password : admin
    2022-09-19 09:45:03下载
    积分:1
  • Excel 2013 Developer Documentation
    Visual Basic for OFFICE APPLICATION(Explore Excel 2013 developer resources)
    2017-09-05 10:12:10下载
    积分:1
  • DoProcess
    在VC环境下编写的对内存进行扫描的小程序。(In the VC environment prepared to scan the memory of small procedures.)
    2008-05-13 12:01:02下载
    积分:1
  • u
    说明:  C#U盘识别代码。 我找了半天才找得到的(C# U disc identification code. I am looking for a long time to find the)
    2008-06-13 17:32:33下载
    积分:1
  • 60310
    Impact of Increasing Distributed Wind Power and Wind Turbine Siting on Rural Distribution Feeder Voltage Profiles
    2016-05-12 17:46:55下载
    积分:1
  • ClientUpdate
    eclipse rcp 客户端 自动更新,下载后调试后即可(eclipse rcp self update)
    2013-08-26 10:24:52下载
    积分:1
  • bookManager
    1. 实现图书馆对外借书,还书的简易操作,提高图书馆对最平凡工作的效率。 2. 实现图书馆对所藏图书的按类别,书名等多方面的查询,最大的方便读者和图书馆工作人员对所需图书的查询。 3. 建立图书馆外借读者数据库,方便工作人员对读者进行有效管理。 4. 建立图书馆工作人员数据库,限定每个工作人员对软件操作的权限,最大限度的保护数据库。 5. 实现图书馆对新书入库,旧书注销的简单处理,并且建立书籍档案,方便进货。 (1. 实现图书馆对外借书,还书的简易操作,提高图书馆对最平凡工作的效率。 2. 实现图书馆对所藏图书的按类别,书名等多方面的查询,最大的方便读者和图书馆工作人员对所需图书的查询。 3. 建立图书馆外借读者数据库,方便工作人员对读者进行有效管理。 4. 建立图书馆工作人员数据库,限定每个工作人员对软件操作的权限,最大限度的保护数据库。 5. 实现图书馆对新书入库,旧书注销的简单处理,并且建立书籍档案,方便进货。)
    2016-02-16 21:37:05下载
    积分:1
  • lesson-12
    孙鑫VC++教学课程lesson12:const char *与char * const的区别。C语言对文件读写的支持,FILE指针;文本文件和二进制文件的区别。用文本方式读写文件和以二进制方式读写文件的注意事项。C++对文件读写的支持,ofstream和ifstream的用法。Win32 SDK对文件读写的支持,CreateFile函数、WriteFile函数、ReadFile函数的使用;MFC对文件读写的支持,CFile类和CFileDialog的使用,文件过滤器的设置。win.ini文件和注册表的读写方式及相关知识点。 (Sun Xin VC++ tutorial lesson12: const char* char* const distinction. C language support for file read and write, the FILE pointer difference between text files and binary files. Way to read and write files with text and Note to the binary mode read and write files. The C++ support, ofstream and ifstream usage of file read and write. Win32 SDK file read and write support for the use of the CreateFile function, WriteFile function, ReadFile function the MFC file reading and writing support use CFile class and CFileDialog file filter settings. win.ini file and read and write registry and related knowledge points.)
    2013-04-02 10:13:49下载
    积分:1
  • TELEPHONERESPONDER
    说明:  该程序为电话自动应答的源程序,实际应用中。(The program for the automatic response of the source telephone, the actual applications.)
    2008-11-19 14:52:03下载
    积分:1
  • POAsuanfa
    poa算法,关于梯级水电调度的c#算法源程序。适合梯级水电站短期优化调度(The algorithm, on the dispatch of cascade c# algorithm source program. For the short-term optimal scheduling of cascade hydropower stations)
    2015-04-21 15:34:45下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载