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

正文內(nèi)容

簡易計算器課程設計-文庫吧

2024-12-29 16:02 本頁面


【正文】 um6=new JButton(6)。 num7=new JButton(7)。 num8=new JButton(8)。 cos=new JButton(cos)。 sin=new JButton(sin)。 tan=new JButton(tan)。 lgX=new JButton(lgX)。 lnX=new JButton(lnX)。 num9=new JButton(9)。 (this)。 (this)。 (this)。 (this)。 ButtonGroup btg=new ButtonGroup()。//創(chuàng)建一個多斥作用域 (sixteen)。 (ten)。 (eight)。 (two)。 (text)。 (false)。 ()。 Back=new JButton(Back)。//Back ()。 (this)。 ce=new JButton(CE)。//CE ()。 (this)。 c=new JButton(C)。//C ()。 (this)。 (sixteen)。 (ten)。 (eight)。 (two)。 (Back)。 (ce)。 (c)。 (num7)。 (this)。 (num8)。 (this)。 (num9)。 (this)。 (chu)。 (this)。 (kai)。 (this)。 (num4)。 (this)。 (num5)。 (this)。 (num6)。 (this)。 (cheng)。 (this)。 (quyu)。 (this)。 (num1)。 (this)。 (num2)。 (this)。 (num3)。 (this)。 (jian)。 (this)。 (dao)。 (this)。 (num0)。 (this)。 (fu)。 (this)。 (dian)。 (this)。 (jia)。 (this)。 (deng)。 (this)。 (cos)。 (this)。 (sin)。 (this)。 (tan)。 (this)。 (lnX)。 (this)。 (lgX)。 (this)。 (a)。 ()。 ()。 (this)。 (b)。 ()。 ()。 (this)。 (cc)。 ()。 ()。 (this)。 (dd)。 ()。 ()。 (this)。 (ee)。 ()。 ()。 (this)。 (ff)。 ()。 ()。 (this)。 JMenuBar mainMenu = new JMenuBar()。 setJMenuBar(mainMenu)。 JMenu editMenu = new JMenu(編輯)。 JMenu viewMenu = new JMenu(查看)。 JMenu helpMenu = new JMenu(幫助)。 (viewMenu)。 (editMenu)。 (helpMenu)。 fileMenu = new JMenu(復制C Ctrl+C)。 exitItemOfFile = new JMenuItem(粘貼V Ctrl+V)。 (this)。 (this)。 (fileMenu)。 (exitItemOfFile)。 t = new JMenuItem(●標準型)。 s = new JMenuItem( 科學型)。 (t)。 (s)。 (this)。 (this)。 about = new JMenuItem( 關(guān)于計算器)。 me = new JMenuItem( 幫助主題)?!   ?about)。 (me)。 (this)。 (this)。 addWindowListener(new WindowDestroyer())。    ?。?、科學型:3、這是“幫助”菜單里的“幫助主題”菜單項:用了JtextArea將內(nèi)容顯示出來     me = new JMenuItem( 幫助主題)。  JTextArea help = new JTextArea(10, 30)。  scrollHelp = new JScrollPane(help)。  (false)。  (執(zhí)行簡單計算 +\n)。  (1. 鍵入計算的第一個數(shù)字。+\n)。  (2. 單擊“+”執(zhí)行加、“”執(zhí)行減、“*”執(zhí)行乘或“/”執(zhí)行除+\n)。  (3. 鍵入計算的下一個數(shù)字。+\n)。  (4. 輸入所有剩余的運算符和數(shù)字。+\n)。 (5. 單擊“=“ )。4、這是“幫助”菜單里的“關(guān)于計算器”菜單項:(null, 計算機開發(fā)者:魏曉力)。   ?。?、四則運算      if (temp == jia){//加法 qian = (())。 fuhao = +。 clear = false。 } if (temp == jian){ qian = (())。 fuhao = 。 clear = false。 } if (temp == cheng){ qian = (())。 fuhao = 。 clear = false。 } if(temp==chu){ qian = (())。 fuhao = 247。 clear = false。 } if (temp == quyu){ qian = (())。 fuhao=%。 clear = false。 } if (temp == deng){ double ss = (())。 ()。 if (fuhao == +) (qian + ss + )。 if (fuhao == ) (qian ss + )。 if (fuhao == ) (qian * ss + )。 if (fuhao == 247。) (qian / ss + )。 if(fuhao==%) (qian%ss + )。 clear = false。//要清空前一次的數(shù)據(jù) }?。?、三角函數(shù)運算   if(temp==cos){ ((((())*)))。 } if(temp==sin){((((())*)))。 } if(temp==tan){ ((((())*)))。 }3、對數(shù)運算if(temp==lgX){ ((((()))))。 } if(temp==lnX){ ((((()))))。 }4、開方、求倒運算if (temp == kai){ String s = ()。 if ((0) == 39。39。) (負數(shù)不能開根號)。 else ((((()))))。 clear = false。 } if (temp == dao){ if (().charAt(0) == 39。039。 amp。amp。 ().length() == 1) (除數(shù)不能為零)。 else{ boolean isDec = true。 int i, j, k。 String s = (1 / (()))。 for (i = 0。 i ()。 i++) if ((i) == 39。.39。) break。 for (j = i + 1。 j ()。 j++) if ((j) != 39。039。){ isDec = false。 break。 } if (isDec == true){ String stemp = 。 for (k = 0。 k i。 k++) stemp += (k)。 (stemp)。 } else (s)。 } clear = false。 } 5、正負號運算if (temp == fu){ boolean isNumber = true。 String s = ()。 for (int i = 0。 i ()。 i++) if(!((i)=39。039。amp。amp。(i)=39。939。||(i)==39。.39。||(i)==39。39。)){ isNumber = false。 break。 } if (isNumber == true){ if ((0) == 39。39。){ ()。 for (int i = 1。 i ()。 i++){ char a = (i)。
點擊復制文檔內(nèi)容
畢業(yè)設計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1