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

📄 balanceal.h

📁 Calculator program written by DLLs with the math algorithms such as automata and can draw some simpl
💻 H
字号:
// BalanceAl.h: interface for the CBalanceAl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BALANCEAL_H__0D0E7627_73B5_456B_8E35_ED9FB98C763A__INCLUDED_)
#define AFX_BALANCEAL_H__0D0E7627_73B5_456B_8E35_ED9FB98C763A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CStack : public  CList<CString,CString&>
{
public:
	
    // Add element to top of stack
    _declspec(dllexport) void Push( CString s ){ 
		AddHead(s);
	}

    // get value at top element of stack
    _declspec(dllexport) CString Top(){	
		if(IsEmpty())	return "";
		return GetHead(); 
	}

    // Pop top element off stack
    _declspec(dllexport) CString Pop(){
		return RemoveHead(); 
	}
};

class CBalanceAl  
{
public:
	_declspec(dllexport) void ConvertData(CStringArray &exs, CStringArray &res);
	_declspec(dllexport) bool Calculate(CString op, CStack &S,double &d,bool mode);
	_declspec(dllexport) bool Calculate2(CString op, CString op1, CString op2,double &d);
	_declspec(dllexport) bool Calculate1(CString op, CString op1,double &d,bool mode);
	_declspec(dllexport) bool is2Operator(CString op);
	_declspec(dllexport) bool is1Operator(CString op);
	_declspec(dllexport) int GetPriority(CString op);
	_declspec(dllexport) void PushOperator(CString op, CStack &S, CStringArray &res);
	_declspec(dllexport) bool isNumber(CString s);
	_declspec(dllexport) bool isOperator(CString s);
	_declspec(dllexport) bool Calculator(CStringArray &exs,double &d,bool mode);
	_declspec(dllexport) bool ProcessData(CString ex, CStringArray &exs);
	_declspec(dllexport) bool BalanceAl(CString ex,double &d,bool mode);
	_declspec(dllexport) CBalanceAl();
	_declspec(dllexport) virtual ~CBalanceAl();
	

};

#endif // !defined(AFX_BALANCEAL_H__0D0E7627_73B5_456B_8E35_ED9FB98C763A__INCLUDED_)

⌨️ 快捷键说明

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