⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calculatordlg.h

📁 MFC做的计算器 是我在学校期间由于课程设计的需要才做的
💻 H
字号:
// CalculatorDlg.h : header file
//

#if !defined(AFX_CALCULATORDLG_H__AF4ABA01_74B9_4548_B519_2B257EA3C510__INCLUDED_)
#define AFX_CALCULATORDLG_H__AF4ABA01_74B9_4548_B519_2B257EA3C510__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "math.h"
#define PI 3.1415926535897932384626433832795
#define m_bb 0.1

/////////////////////////////////////////////////////////////////////////////
// CCalculatorDlg dialog

class CCalculatorDlg : public CDialog
{
// Construction
public:
	CCalculatorDlg(CWnd* pParent = NULL);	// standard constructor

	int m_bit;
	bool node;
	double m_base;
//	double m_bb;
//	CTime time;
//	time=CTime::GetCurrentTime();
//	int year = time.GetYear( ) ;
  // int month = time.GetMonth();

	void Result();
	//void OnClear();

// Dialog Data
	//{{AFX_DATA(CCalculatorDlg)
	enum { IDD = IDD_CALCULATOR_DIALOG };
	double	m_result;
	double	m_number;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCalculatorDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCalculatorDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnNumberKey(UINT nID);
	afx_msg void OnAdd();
	afx_msg void OnSub();
	afx_msg void OnMutiply();
	afx_msg void OnDivid();
	afx_msg void OnSqrt();
	afx_msg void OnReciprocal();
	afx_msg void OnEqual();
	afx_msg void OnSin();
	afx_msg void OnCos();
	afx_msg void OnTan();
	afx_msg void OnPingfang();
	afx_msg void OnLifang();
	afx_msg void OnNcifang();
	afx_msg void OnExp();
	afx_msg void OnLn();
	afx_msg void OnLog();
	afx_msg void OnClear();
	afx_msg void OnSign();
	afx_msg void OnNode();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CALCULATORDLG_H__AF4ABA01_74B9_4548_B519_2B257EA3C510__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -