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

正文內(nèi)容

科學(xué)計(jì)算器課程設(shè)計(jì)-wenkub.com

2025-05-28 21:56 本頁面
   

【正文】 } (%f,res)。} else if (()!=1) {MessageBox(n 必須為正整數(shù) !, 科學(xué)計(jì)算器(徐金富) )。 } } void CJSQDlg::OnKe4Button() 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計(jì) 報(bào)告 35 { float res=1。 } if ((1)==.) { string1=(()1)。i++) { res=res*i。} else if (atof(m_Show)30) {MessageBox(超出計(jì)算范圍 ,要求的階層數(shù)過大無法表示 ,科學(xué)計(jì)算器(徐金富) )。 if ((.)!=1amp。 m_Flag=1。} else { (%f,log10(atof(m_Show)))。 } } void CJSQDlg::OnLogButton() { // TODO: Add your control notification handler code here if(m_Show==39。 } if ((1)==.) { string1=(()1)。||()==0) { MessageBox(輸入的數(shù)據(jù)錯(cuò)誤,請重新輸入 !, 科學(xué)計(jì)算器(徐金富) )。 m_Flag=1。 } } void CJSQDlg::OnKe2Button() { // TODO: Add your control notification handler code here (%f,atof(m_Show)*atof(m_Show))。 } if ((1)==.) { string1=(()1)。 UpdateData(false)。 while ((1)==0) { string1=(()1)。 } m_Show=string1。 } UpdateData(false)。 while ((1)==0) { string1=(()1)。 f1=atof(string1)。 } void CJSQDlg::OnEqualButton() //等號,運(yùn)算結(jié)果 { // TODO: Add your control notification handler code here Operation()。 choose=4。 m_Point=0。 } void CJSQDlg::OnFu4Button() //除法運(yùn)算 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計(jì) 報(bào)告 30 { // TODO: Add your control notification handler code here UpdateData()。 choose=3。 m_Point=0。 } void CJSQDlg::OnFu3Button() //乘法運(yùn)算 { // TODO: Add your control notification handler code here UpdateData()。 choose=2。 m_Point=0。 } void CJSQDlg::OnFu2Button() //減法運(yùn)算 { // TODO: Add your control notification handler code here 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計(jì) 報(bào)告 29 UpdateData()。 m_Flag = 1。 m_Point=0。 m_Count+=1。 if (m_Count==0) { string1=m_Show。 m_Count=0。+m_Show。39。 m_Show=(()1)。.39。 } else { if(m_Show==0) { m_Show+=.。 m_Show+=39。 } void CJSQDlg::OnFu7Button() { // TODO: Add your control notification handler code here UpdateData()。 } else { if(m_Show==0) { m_Show=。 if(m_Flag==1) { m_Flag = 0。 } m_Show+=39。 m_Show=。739。 m_Show+=39。 } UpdateData(false)。639。 } void CJSQDlg::OnNum6Button() { // TODO: Add your control notification handler code here UpdateData()。 } else { if(m_Show==0) { m_Show=。 if(m_Flag==1) { m_Flag = 0。 } m_Show+=39。 m_Show=。339。 m_Show+=39。 } UpdateData(false)。239。 } void CJSQDlg::OnNum2Button() { // TODO: Add your control notification handler code here UpdateData()。 } else { if(m_Show==0) { m_Show=。 if(m_Flag==1) { m_Flag = 0。 } m_Show+=39。 m_Show=。 } m_Count=0。 } if ((1)==.) { string1=(()1)。 ff2=atoi(string2)。 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計(jì) 報(bào)告 21 case 5: UpdateData()。 } if ((1)==.) { string1=(()1)。 if(f2==0) MessageBox(被除數(shù)不能為零 !)。 case 4: UpdateData()。 } if ((1)==.) { string1=(()1)。 f2=atof(string2)。 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計(jì) 報(bào)告 20 break。 while ((1)==0) { string1=(()1)。 f1=atof(string1)。 UpdateData(false)。 (%f,f3)。) { string1=(()1)。39。 } void CJSQDlg::Operation() { double f1,f2,f3。 int y = (() cyIcon + 1) / 2。 CRect rect。 if (IsIconic()) { CPaintDC dc(this)。 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout。s main window is not a dialog SetIcon(m_hIcon, TRUE)。 (IDS_ABOUTBOX)。 0xFFF0) == IDM_ABOUTBOX)。 //{{AFX_DATA_MAP(CJSQDlg) DDX_Text(pDX, IDC_M_EDIT, m_M)。 //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CJSQDlg dialog CJSQDlg::CJSQDlg(CWnd* pParent /*=NULL*/) : CDialog(CJSQDlg::IDD, pParent) { //{{AFX_DATA_INIT(CJSQDlg) m_M = _T()。 // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }。 通過本次的 課程設(shè)計(jì)讓我學(xué)到了 并收獲了 很多,不僅 僅 鞏固了先前學(xué)的 MFC 程序設(shè)計(jì)知識, 讓我認(rèn)識到了自己很多的不足, 而且 此次課程設(shè)計(jì)還 培養(yǎng)了我的動手 實(shí)踐 能力, 讓 我的創(chuàng)造性思維得到拓展。 當(dāng)我們 有了明確的目的,就可以發(fā)揮自己的頭腦來完成 實(shí)現(xiàn) 它了。 同時(shí)在實(shí)踐過程中 提 高 自己 找錯(cuò)糾 錯(cuò)能力,通常錯(cuò)誤就 那幾種,多練習(xí)就熟練了。 正所謂“紙上談兵終覺淺,覺知此事要躬行。 ( 3) 使用 MFC開發(fā)的應(yīng)用程序不僅小,而且運(yùn)行快。 基于 VC++下的設(shè)計(jì),可以看出 VC++它的多態(tài)性,繼承性,封裝性的優(yōu)越特點(diǎn),這讓編譯 設(shè)計(jì) 更加的 簡單 方便 ,特別是 它的 繼承 性。break。減法 type=1) 。 雙目運(yùn)算符功能的實(shí)現(xiàn) 雙目運(yùn)算符需要兩個(gè)操作數(shù)才能運(yùn)算,所以在執(zhí)行雙目運(yùn)算符按鈕的函數(shù)代碼中,要把 m_show 中的值保存到變量 data1中,然后把 m_show 清零。當(dāng) docimal=1 時(shí),表示有小數(shù)點(diǎn),否則則表示無小數(shù)點(diǎn)。 } 其他按鈕如參 照按鈕“ 1”來連接代碼 , 詳細(xì) 代碼見附錄。 } else { if(m_Show==0) { m_Show=。 if(m_Flag==1) { m_Flag = 0。在編輯框上單擊鼠標(biāo)右鍵,在彈出菜單中選擇 “ 建立類向?qū)А辈藛雾?xiàng),彈出 MFC ClassWizard 對話框,選擇 Member Variables 選項(xiàng)卡, 再將 Class name中選擇 IDC_SHOW_EDIT,彈出 Add Menber Variable,連接變量為m_show,變量類型設(shè)定為 cstring 型。//輸入數(shù)據(jù)整數(shù)與小數(shù)部分 double value=0。//判斷是否小數(shù) double data2=0。在按鈕上單擊鼠標(biāo)右鍵,在彈出的快捷菜單中選擇屬性選項(xiàng),此時(shí)也彈出 Push Button 屬性對話框,如圖 34 所示,在該對話框中輸入控件的 ID 值和標(biāo)題屬性。 其中 按鈕的 創(chuàng)建以 “1” 為例進(jìn)行介紹,其他按鈕的創(chuàng)建可參照 它 進(jìn)行操作。算出后把結(jié)果保存至 m_show 中 。按下數(shù)字按鈕后,判斷 m_show 的正負(fù)號,對其進(jìn)行相關(guān)處理,然后在判斷是否有小數(shù)點(diǎn),處理后輸出結(jié)果。 簡易 計(jì)算器的功能 計(jì)算器的功能 多少 決定了計(jì)算器的 實(shí)用價(jià)值, 本 設(shè)計(jì)中的 簡易計(jì)算器實(shí)現(xiàn)的主要功能有: 1)簡單的四則運(yùn)算:加 、 減 、 乘 、 除 以及取 百分?jǐn)?shù) 2) 開方 、 冪運(yùn)算 、 倒數(shù) 、 對數(shù) 、階乘、平方 3) 正弦、余弦、正切 這些功能都是很常見的需要計(jì)算器功能,它可以幫助人們完成很多需要計(jì)算處理的功能。 目前所有計(jì)算機(jī)帶自帶計(jì)算器,大大的方便人們的計(jì)算,處理事務(wù), 本設(shè)計(jì)中,運(yùn)用 MFC 實(shí)現(xiàn)計(jì)算器的功能。 計(jì)算 Abstract With the puter work munication technology, the rapid development of microelectronics technology, as the successor to the 21st century, keep up the pace of the times, which need to adapt to adapt to the rhythm of real life, real life, many times to be calculated by the line deal with some matters, the design calculator can help people avoid plicated calculations,
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1