freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

簡易計(jì)算器課程設(shè)計(jì)-文庫吧資料

2025-01-19 16:02本頁面
  

【正文】 ile = new JMenuItem(粘貼V Ctrl+V)。 (helpMenu)。 (viewMenu)。 JMenu viewMenu = new JMenu(查看)。 setJMenuBar(mainMenu)。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (c)。 (Back)。 (eight)。 (sixteen)。//C ()。 (this)。 ce=new JButton(CE)。//Back ()。 ()。 (text)。 (eight)。//創(chuàng)建一個(gè)多斥作用域 (sixteen)。 (this)。 (this)。 num9=new JButton(9)。 lgX=new JButton(lgX)。 sin=new JButton(sin)。 num8=new JButton(8)。 num6=new JButton(6)。 num4=new JButton(4)。 num2=new JButton(2)。 num0=new JButton(0)。 kai = new JButton(sqrt)。 fu = new JButton(+/)。 quyu = new JButton(%)。 chu = new JButton(247。 jian = new JButton()。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 (new GridLayout(7,4))。 (new GridLayout(1,1))。 (cp2,Center)。 cp=getContentPane()。 JPanel cp2=new JPanel()。 ()。 setLocation(400,400)。 public Calculator(){ super(計(jì)算器)。 String fuhao,copy。 int all=0。 String copycontent=。 Container cp。//單選按扭 JButton Back,ce,c,num0,num1,num2,num3,num4,num5,num6,num7,num8,num9。//各個(gè)進(jìn)制之間的轉(zhuǎn)化 JMenuItem fileMenu,exitItemOfFile,s,t, about, me。public class Calculator extends JFrame implements ActionListener{ JScrollPane scrollHelp。import 。八、源代碼import .*。由于專業(yè)知識有限,以及動(dòng)手能力的欠缺,所以開發(fā)的系統(tǒng)不是很完善,有一些功能未實(shí)現(xiàn),但是簡易計(jì)算器的基本功能均已實(shí)現(xiàn)。這次課程設(shè)計(jì)的主要目的是學(xué)會(huì)Java程序開發(fā)的環(huán)境搭建與配置,并在實(shí)際運(yùn)用中學(xué)習(xí)和掌握J(rèn)ava程序開發(fā)的全過程,以及進(jìn)一步熟悉掌握J(rèn)ava程序設(shè)計(jì)語言的基礎(chǔ)內(nèi)容,提高Java編程技術(shù)以及分析解決問題的綜合能力。因此在以后的學(xué)習(xí)中我會(huì)通過實(shí)踐來檢驗(yàn)自己的不足和加深、鞏固自身。設(shè)計(jì)過程中遇到了不少麻煩:如進(jìn)制間的轉(zhuǎn)換,也遇到了平時(shí)學(xué)習(xí)中老師強(qiáng)調(diào)與教過的疑難點(diǎn),不懂的通過翻閱資料和與同學(xué)間的討論都一一解決了。本次的Java課程設(shè)計(jì)讓我對Java的理論知識又有了更深一步的了解,溫故而知新,開始設(shè)計(jì)時(shí)完全沒頭緒,感覺很混亂,對書本知識不夠扎實(shí)的我深感“書到用時(shí)方恨少”,只好又一遍瀏覽全書,讓我對其有了大概的復(fù)習(xí),對知識系統(tǒng)全面進(jìn)行了了解,讓我里出了我設(shè)計(jì)的框架,遇到困難時(shí)先是苦思冥想在向同學(xué)請教。 } }六、參考文獻(xiàn)[01]施霞萍,(第二版)[M][02] 耿祥義,張躍平. Java2實(shí)用教程(第三版).清華大學(xué)出版社。i) answer+=(i1)。 } } for(int i=length。padding0。 int length = ()。 } } return invert (strBinNum, 8)。 }else{ strBinNum += (decNum)。 while (decNum != 0) { if (decNum 1){ strBinNum += (decNum % 2)。 } } return invert (strOctNum, 3)。 }else{ strOctNum += (decNum)。 while (decNum != 0){ if (decNum 7){ strOctNum += (decNum % 8)。 } } return invert(strHexNum,2)。 default: strHexNum +=(currentNum)。 case 10: strHexNum += A。 case 11: strHexNum += B。 case 12: strHexNum += C。 case 13: strHexNum += D。 case 14: strHexNum += E。 } switch (currentNum){ case 15: strHexNum += F。 } else{ currentNum = decNum。 while(decNum != 0){ if (decNum 15){ currentNum=decNum%16。 } public String decHex (int decNum){//10 to 16 String strHexNum = 。 i++) strDecNum = 0 + strDecNum。 for (int i = ()。 } }6、退出窗口動(dòng)作class WindowDestroyer extends WindowAdapter{//     public void windowClosing(WindowEvent e){      (0)。39。 (() + a)。 i ()。){ ()。 } if (isNumber == true){ if ((0) == 39。)){ isNumber = false。||(i)==39。||(i)==39。(i)=39。amp。 i++) if(!((i)=39。 for (int i = 0。 } 5、正負(fù)號運(yùn)算if (temp == fu){ boolean isNumber = true。 } else (s)。 k++) stemp += (k)。 for (k = 0。 break。039。 j ()。) break。 i++) if ((i) == 39。 for (i = 0。 int i, j, k。 ().length() == 1) (除數(shù)不能為零)。 amp。 } if (temp == dao){ if (().charAt(0) == 39。 else ((((()))))。39。 }4、開方、求倒運(yùn)算if (temp == kai){ String s = ()。 }3、對數(shù)運(yùn)算if(temp==lgX){ ((((()))))。 } if(temp==sin){((((())*)))。 clear = false。) (qian / ss + )。 if (fuhao == ) (qian * ss + )。 if (fuhao == +) (qian + ss + )。 } if (temp == deng){ double ss = (())。 fuhao=%。 clear = false。 } if(temp==chu){ qian = (())。 fuhao = 。 clear = false。 } if (temp == jian){ qian = (())。 fuhao = +。
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1