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

正文內(nèi)容

基于java語(yǔ)言的計(jì)算器設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文(參考版)

2025-06-30 17:39本頁(yè)面
  

【正文】 }}class WinClose implements WindowListener{ public void windowClosing(WindowEvent e) //單擊窗口關(guān)閉按鈕時(shí)觸發(fā)并執(zhí)行實(shí)現(xiàn)窗口監(jiān)聽器接口中的方法 { (0)。 //隱藏對(duì)話框 else (0)。 } (+ result)。 } else if ((sin)) { d=(x)。 } else if ((cos)) { d=(x)。 } else if ((tan)) { d=(x)。 } else if ((log)) { d=(x)。 } else if ((exp)) { d=(x)。 else if ((sqrt)) { d=(x)。 else if ((/)) result/=x。 else if (()) result=x。 } } } public void calculate(double x) //各運(yùn)算符的具體運(yùn)算方法 { double d=0。 lastCommand=mand。 if(start) { lastCommand=mand。 (true)。菜單欄中用法的處理方法 { (sqrt,exp等鍵是先輸運(yùn)算符再輸數(shù)字\n)。 } else if (()==用法) //按下39。 ((n))。 ((n))。 } else (()+input)。 } else if((C)) //清零鍵的實(shí)現(xiàn)方法 { (0)。 } if(!(+/)) { String str=()。 start=false。 } public void actionPerformed(ActionEvent e) //按鈕的單擊事件處理方法 { if(().equals(button_1)||().equals(button_2)|| ().equals(button_3)||().equals(button_4)||().equals(button_5)|| ().equals(button_6)||().equals(button_7)|| ().equals(button_8)||().equals(button_9) ||().equals(button_0)||().equals(button_point)||().equals(button_plusminus)|| ().equals(button_cancel)||().equals(button_CE)){ //非運(yùn)算符的處理方法 String input=()。 (m3_Help)。 (m2_bjz)。 (m1)。 (this)。 label_dialog = new Label(,)。 dialog = new Dialog(this,提示,true)。 JMenuItem m3_Help = new JMenuItem(用法)。 (this)。 (this)。 (this)。 JMenu m2=new JMenu(進(jìn)制轉(zhuǎn)換)。 (menubar)。 //注冊(cè)窗口監(jiān)聽器 (true)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (button_sin)。 (button_point)。 (button_minus)。 (button_3)。 (button_1)。 (button_tan)。 (button_5)。 (button_divide)。 (button_9)。 (button_7)。 (button_CE)。 (button_plusminus)。 button_plus=new JButton(+)。 button_equal=new JButton(=)。 button_0=new JButton(0)。 (new GridLayout(1,5,4,4))。 button_minus=new JButton()。 button_3=new JButton(3)。 button_1=new JButton(1)。 (new GridLayout(1,5,4,4))。 button_multiply=new JButton(*)。 button_6=new JButton(6)。 button_4=new JButton(4)。 (new GridLayout(1,5,4,4))。 button_divide=new JButton(/)。 button_9=new JButton(9)。 button_7=new JButton(7)。 (new GridLayout(1,5,4,4))。 button_cancel=new JButton(C)。 button_exp=new JButton(exp)。 button_sqrt=new JButton(sqrt)。 (new GridLayout(1,5,4,4))。 (new GridLayout(1,4,4,4))。 lastCommand = =。 start=true。 (displayField)。 ()。 (true)。 (240,200)。 private JButton button_sqrt,button_plusminus,button_CE,button_cancel,button_1,button_2, button_3,button_4,button_5,button_6,button_7,button_8,button_9,button_0,button_plus,button_minus,button_multiply,button_divide,button_point,button_equal,button_log,button_tan,button_cos,button_sin,button_exp。 private Dialog dialog。 //判斷是否為數(shù)字的開始 private JMenuBar menubar。 //保存+,,*,/,=命令0 private double result。 private JTextField displayField。 private GridBagLayout layout。import .*。程序源代碼:import .*。老師還給我提供查詢資料的幫助與支持,并對(duì)論文的內(nèi)容提供了許多寶貴意見,最終指導(dǎo)我完成了論文的寫作。在這里我要特別感謝老師和幫助過(guò)我的同學(xué)。在設(shè)計(jì)的過(guò)程中,老師和同班同學(xué)給了我很多幫助和支持,老師認(rèn)真負(fù)責(zé)的工作態(tài)度、嚴(yán)謹(jǐn)?shù)闹螌W(xué)風(fēng)格,讓我深受啟發(fā);和同學(xué)們之間的討論讓我受益匪淺。這讓我明白了要多加練習(xí),也堅(jiān)定了要上下而求索的決心。也遇到了很多的困難,但是更加得到了同學(xué)們的幫
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1