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

📄 dlglog.h

📁 实现对输入的算术表达式进行计算,用栈完成此项功能
💻 H
字号:
#if !defined(AFX_DLGLOG_H__687E5A46_5A13_43FB_8944_93F9D464AE49__INCLUDED_)
#define AFX_DLGLOG_H__687E5A46_5A13_43FB_8944_93F9D464AE49__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dlglog.h : header file
//
#include "Stack.h"
/////////////////////////////////////////////////////////////////////////////
// Dlglog dialog

class Dlglog : public CDialog
{
private:
	Stack<float>a;
	Stack<char>b;
    CString bds;
	char a2,b2;
	int xu1,xu2,k1,k2;
	CString quan;
	CString shuzu[20],shuzu1[20];
	int ab;
	int jian;
	CString str;
// Construction
public:
	void du();
	int di2(char d2);
	int di1(char d1);
	int jiance();
	CString zhuanhua(float shuru);
	CString quc1();
	CString quc();
	int zhuan(char x);
	float yunsuan(float a1,float b1,char c);
	char bijiao(char a,char b);
	Dlglog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(Dlglog)
	enum { IDD = IDD_DIALOG1 };
	CString	m_bids;
	float	m_jsjg;
	CString	m_xianshi1;
	CString	m_j;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(Dlglog)
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DLGLOG_H__687E5A46_5A13_43FB_8944_93F9D464AE49__INCLUDED_)

⌨️ 快捷键说明

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