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

正文內(nèi)容

c計算器課程設(shè)計--計算器程序設(shè)計(參考版)

2025-06-09 19:22本頁面
  

【正文】 C++課程設(shè)計 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__。 // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CZZApp) public: virtual BOOL InitInstance()。39。 n=0。 opt=true。 } } n++。 opt=false。 m_Result=m_input。 } m=put。in。 } else if(dian==true)//如果小數(shù)點已經(jīng)被按下 /////////////// { int i。 opt=false。 m_Result=m_input。m_done=false。 UpdateData(false)。 m_input=m_input+m。i++) { put=put/10。 for(i=0。 UpdateData(false)。m_done=false。 UpdateData(false)。 m_input=m_input*10+put。 } void CZZDlg::Numin(double put) { if(m_done==true||opt==true) //如果一次計算 結(jié)束或運算符已經(jīng)選擇 { if(dian==false)//如果小數(shù)點還沒有被按下 { m_Result=m_input=。 dian=false。 } opt=false。 } else if(yun==10)//cos { m_Result=cos(num_1*PI/180)。 } else if(yun==9)//tan { m_Result=tan(num_1*PI/180)。 } else if(yun==8)//sin { m_Result=sin(num_1*PI/180)。 } m_Result=sqrt(num_1)。 } else if(yun==7)//根號 { if(num_1=0) { m_Result=0。 } else if(yun==6)//平方 { m_Result=num_1*num_1。 } m_Result=log10(num_1)。 } else if(yun==5)//log { if(num_1=0) { m_Result=0。 } else if(yun==4)//除 { m_Result=num_1/num_2。 } else if(yun==3)//乘 { m_Result=num_1*num_2。 } else if(yun==2)//減 { m_Result=num_1num_2。 if(yun==1)//加 { m_Result=num_1+num_2。 n=0。 dian=false。 UpdateData(false)。 } void CZZDlg::OnBce() { // TODO: Add your control notification handler code here // CE C++課程設(shè)計 30 m_input=0。 } void CZZDlg::Oncos() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Ontan() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onsin() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onsqrt() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onpf() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::Onlog() { // TODO: Add your control notification handler code here operate()。 } void CZZDlg::OnBdiv() { // TODO: Add your control notification handler code here // / operate()。 } void CZZDlg::OnBmult() { // TODO: Add your control notification handler code here C++課程設(shè)計 29 // * operate()。 } void CZZDlg::OnBsub() { // TODO: Add your control notification handler code here // operate()。 } void CZZDlg::OnBadd() { // TODO: Add your control notification handler code here // + operate()。 } void CZZDlg::OnBd() { // TODO: Add your control notification handler code here // . dian=true。 } void CZZDlg::OnB8() { // TODO: Add your control notification handler code here // 8 Numin()。 } C++課程設(shè)計 28 void CZZDlg::OnB6() { // TODO: Add your control notification handler code here // 6 Numin()。 } void CZZDlg::OnB4() { // TODO: Add your control notification handler code here // 4 Numin()。 } void CZZDlg::OnB2() { // TODO: Add your control notification handler code here // 2 Numin()。 } void CZZDlg::OnB0() { // TODO: Add your control notification handler code here // 0 Numin()。 } else { CDialog::OnPaint()。 int y = (() cyIcon + 1) / 2。rect)。 CRect rect。 // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON)。 } } // 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(UINT nID, LPARAM lParam) { if ((nID amp。 // Set big icon SetIcon(m_hIcon, FALSE)。 } } // Set the icon for this dialog. The framework does this automatically // when the application39。 if (!()) { pSysMenuAppendMenu(MF_SEPARATORC++課程設(shè)計 26 )。 if (pSysMenu != NULL) { CString strAboutMenu。 ASSERT(IDM_ABOUTBOX 0xF000)。 // Add About... menu item to system menu. // IDM_ABOUTBOX must be in the system mand range. ASSERT((IDM_ABOUTBOX amp。 opt=false,m_done=false。 //}}AFX_DATA_MAP } C++課程設(shè)計 25 BEGIN_MESSAGE_MAP(CZZDlg, CDialog) //{{AFX_MSG_MAP(CZZDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_B0, OnB0) ON_BN_CLICKED(IDC_B1, OnB1) ON_BN_CLICKED(IDC_B2, OnB2) ON_BN_CLICKED(IDC_B3, OnB3) ON_BN_CLICKED(IDC_B4, OnB4) ON_BN_CLICKED(IDC_B5, OnB5) ON_BN_CLICKED(IDC_B6, OnB6) ON_BN_CLICKED(IDC_B7, OnB7) ON_BN_CLICKED(IDC_B8, OnB8) ON_BN_CLICKED(IDC_B9, OnB9) ON_BN_CLICKED(IDC_Badd, OnBadd) ON_BN_CLICKED(IDC_Bce, OnBce) ON_BN_CLICKED(IDC_Bd, OnBd) ON_BN_CLICKED(IDC_Bdiv, OnBdiv) ON_BN_CLICKED(IDC_Bmul
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1