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

正文內(nèi)容

簡單計算器課程設(shè)計報告(參考版)

2025-01-21 23:50本頁面
  

【正文】 //設(shè)置單選標(biāo)記函數(shù)}//退出功能void CLiuyunlongDlg::Onexit() { // TODO: Add your mand handler code here OnOK()。 biaozhun=false。 // 彈出新建對話框}//標(biāo)準(zhǔn)型、科學(xué)型菜單項實現(xiàn)代碼,以科學(xué)型為例:void CLiuyunlongDlg::OnMENUkexue() { // TODO: Add your mand handler code here //顯示“完整版”對話框 SetWindowPos(NULL,0,0,(),(), SWP_NOMOVE|SWP_NOZORDER)。 //數(shù)據(jù)刷新}///關(guān)于菜單項的實現(xiàn)代碼void CLiuyunlongDlg::OnMENUguanyu() { // TODO: Add your mand handler code here CguanyuDlg dlg。 zhengfu=true。 //數(shù)據(jù)刷新 dianhou=0。//角度轉(zhuǎn)換為弧度 } m_num=cos(m_num*m_jiao)。}//正余弦、正切實現(xiàn)代碼,以余弦為例void CLiuyunlongDlg::OnCos() { // TODO: Add your control notification handler code here if(m_hudu==0) { m_jiao=1。 point=FALSE。 num1=0。 //數(shù)據(jù)刷新 num2=m_num。 if(m_num=0) { m_num=sqrt(num2)。 zhengfu=TRUE。 point=FALSE。 num1=0。 } if(m_num=||m_num) GetDlgItem(IDC_SHUCHU)SetWindowText(結(jié)果過大,無法顯示)。UpdateData(FALSE)。 case 5: if (m_num=0||num2=0) //判斷操作數(shù)是否合法 GetDlgItem(IDC_SHUCHU)SetWindowText(輸入錯誤,取對數(shù)要為正數(shù)!)。UpdateData(FALSE)。 case 4: if (m_num==0) //在除法中,判斷除數(shù)是否為0 GetDlgItem(IDC_SHUCHU)SetWindowText(輸入錯誤,0不能作除數(shù)!)。 //兩數(shù)相乘 UpdateData(FALSE)。 //數(shù)據(jù)刷新 break。 case 2: m_num=num2m_num。 //兩數(shù)相加 UpdateData(FALSE)。 //小數(shù)位數(shù)無 danshuang=2。 //當(dāng)前小數(shù)無 zhengfu=true。 //把第二個值賦于輸出框的成員變量 m_num=0。 //數(shù)據(jù)刷新}//加減乘除、取對數(shù)實現(xiàn)代碼,以減法為例void CLiuyunlongDlg::OnDifference() { // TODO: Add your control notification handler code here if(danshuang!=0)OnEqual()。 if(m_num==0)zhengfu=TRUE。 } } dianhou=dianhou。idianhou1。 //移動至只有一個小數(shù)位 } m_num=m_numfmod(m_num,1)。idianhou1。 if (point==FALSE ) //判斷當(dāng)前是否有小數(shù)點,如果沒有 m_num=m_num/10fmod(m_num/10,1)。 UpdateData(FALSE)。 point=FALSE。 //變量2為0 dianhou=0。 //輸出框清0 num1=0。//小數(shù)點標(biāo)志位賦值}//負(fù)號按鈕的響應(yīng)函數(shù)void CLiuyunlongDlg::OnChange() { // TODO: Add your control notification handler code here if(m_num==0)zhengfu=false。UpdateData(FALSE)。 //否則前面加負(fù)號 } else if(zhengfu==TRUE) m_num=m_num*10。 //1/10,得到的小數(shù)放入輸出框中 } if (zhengfu==TRUE) //當(dāng)前值是否是正數(shù)還是負(fù)數(shù),如果是正數(shù) m_num=m_num+num1。idianhou。 dianhou=dianhou++。}}//0到9數(shù)值的實現(xiàn)代碼,此處以0代替:void CLiuyunlongDlg::OnNumber0() { // TODO: Add your control notification handler code here if(danshuang==0)num2=0。pPopupMenuGetMenuItemID() == ){++。while ( nCount amp。}// Adjust for menu deletions and additions.UINT nCount = pPopupMenuGetMenuItemCount()。 // Popups are never auto disabled.}else{// Normal menu item.// Auto enable/disable if frame window has m_bAutoMenuEnable// set and mand is _not_ a system mand. = NULL。 // First item of popup can39。if ( == (UINT)1){// Possibly a popup menu, route to first item of that popup. = pPopupMenuGetSubMenu()。 // Menu separator or invalid cmd ignore it.ASSERT( == NULL)。++){ = pPopupMenuGetMenuItemID()。for ( = 0。break。 nIndex nIndexMax。(hParentMenu = ::GetMenu(pParentm_hWnd)) != NULL){int nIndexMax = ::GetMenuItemCount(hParentMenu)。t have menusneed to go to the top!if (pParent != NULL amp。 // Parent == child for tracking popup.else if ((hParentMenu = ::GetMenu(m_hWnd)) != NULL){CWnd* pParent = this。// Determine if menu is popup in toplevel menu and set m_pOther to// it if so (m_pParentMenu == NULL indicates that it is secondary popup).HMENU hParentMenu。ASSERT( == NULL)。// Check the enabled state of various menu items.CCmdUI state。 //設(shè)置為綠色背景 CDialog::OnPaint()。 GetClientRect(rect)。 // return TRUE unless you set the focus to a control}//設(shè)置背景顏色所加代碼void CLiuyunlongDlg::OnPaint() { if (IsIconic()) { … … } else { CRect rect。 SetWindowPos(NULL,0,0,(),(), SWP_NOMOVE|SWP_NOZORDER)。 =。 =。 GetDlgItem(IDC_SEPARATOR)GetWindowRect(amp。 GetWindowRect(amp。//弧度相關(guān)聯(lián)的變量初始化 //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in
點擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1