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

正文內(nèi)容

c++計(jì)算器課程設(shè)計(jì)--計(jì)算器程序設(shè)計(jì)(文件)

2025-06-29 19:22 上一頁面

下一頁面
 

【正文】 id Numin(double put)。 bool dian。 void OnMnuCopy()。 double m_Result。 afx_msg void OnSysCommand(UINT nID, LPARAM lParam)。 C++課程設(shè)計(jì) 23 afx_msg void OnB1()。 afx_msg void OnB5()。 afx_msg void OnB9()。 afx_msg void OnBdiv()。 afx_msg void OnChangeEdit1()。 afx_msg void Ontan()。 //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. endif // !defined(AFX_ZZDLG_H__70D9D5A9_C97C_488F_8F36_08F210B07A01__INCLUDED_) // : implementation file // include include include include include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE define PI static char THIS_FILE[] = __FILE__。 // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 } void CZZDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 opt=false,m_done=false。 ASSERT(IDM_ABOUTBOX 0xF000)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATORC++課程設(shè)計(jì) 26 )。 // Set big icon SetIcon(m_hIcon, FALSE)。 ()。 // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON)。rect)。 } else { CDialog::OnPaint()。 } void CZZDlg::OnB2() { // TODO: Add your control notification handler code here // 2 Numin()。 } C++課程設(shè)計(jì) 28 void CZZDlg::OnB6() { // TODO: Add your control notification handler code here // 6 Numin()。 } void CZZDlg::OnBd() { // TODO: Add your control notification handler code here // . dian=true。 } void CZZDlg::OnBsub() { // TODO: Add your control notification handler code here // operate()。 } void CZZDlg::OnBdiv() { // TODO: Add your control notification handler code here // / operate()。 } void CZZDlg::Onpf() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onsin() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Oncos() { // TODO: Add your control notification handler code here operate()。 UpdateData(false)。 n=0。 } else if(yun==2)//減 { m_Result=num_1num_2。 } else if(yun==4)//除 { m_Result=num_1/num_2。 } m_Result=log10(num_1)。 } else if(yun==7)//根號 { if(num_1=0) { m_Result=0。 } else if(yun==8)//sin { m_Result=sin(num_1*PI/180)。 } else if(yun==10)//cos { m_Result=cos(num_1*PI/180)。 dian=false。 m_input=m_input*10+put。m_done=false。 for(i=0。 m_input=m_input+m。m_done=false。 opt=false。in。 m_Result=m_input。 } } n++。 n=0。 // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CZZApp) public: virtual BOOL InitInstance()。 C++課程設(shè)計(jì) 34 ////////////////////////////////////////////。 ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. endif // !defined(AFX_ZZ_H__D6CCE042_0495_4C65_8B5F_FC1236BFFCEC__INCLUDED_) // : Defines the class behaviors for the application. // include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。39。 opt=true。 opt=false。 } m=put。 } else if(dian==true)//如果小數(shù)點(diǎn)已經(jīng)被按下 /////////////// { int i。 m_Result=m_input。 UpdateData(false)。i++) { put=put/10。 UpdateData(false)。 UpdateData(false)。 } void CZZDlg::Numin(double put) { if(m_done==true||opt==true) //如果一次計(jì)算 結(jié)束或運(yùn)算符已經(jīng)選擇 { if(dian==false)//如果小數(shù)點(diǎn)還沒有被按下 { m_Result=m_input=。 } opt=false。 } else if(yun==9)//tan { m_Result=tan(num_1*PI/180)。 } m_Result=sqrt(num_1)。 } else if(yun==6)//平方 { m_Result=num_1*num_1。 } else if(yun==5)//log { if(num_1=0) { m_Result=0。 } else if(yun==3)//乘 { m_Result=num_1*num_2。 if(yun==1)//加 { m_Result=num_1+num_2。 dian=false。 } void CZZDlg::OnBce() { // TODO: Add your control notification handler code here // CE C++課程設(shè)計(jì) 30 m_input=0。 } void CZZDlg::Ontan() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onsqrt() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onlog() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::OnBmult() { // TODO: Add your control notification handler code here C++課程設(shè)計(jì) 29 // * operate()。 } void CZZDlg::OnBadd() { // TODO: Add your control notification handler code here // + operate()。 } void CZZDlg::OnB8() { // TODO: Add your control notification handler code here // 8 Numin()。 } void CZZDlg::OnB4() { // TODO: Add your control notification handler code here // 4 Numin()。 } void CZZDlg::OnB0() { // TODO: Add your control notification handler code here // 0 Numin()。 int y = (() cyIcon + 1) / 2。 CRect rect。 } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CZZDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this)。 // return TRUE unless you set the focus to a control } void CZZDlg::OnSysCommand
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1