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

📄 expression.h

📁 把中缀表达式转换为后缀表达后
💻 H
字号:
#ifndef EXPRESSION_H_
#define EXPRESSION_H_
#include <iostream>
#include"string"
#include "Stack.h"
#include "Queue.h"

using namespace std;

class Expression {
public:
	Expression();
	int isp(char ch);
	int icp(char ch);
    void infix_to_postfix(string infix);
	bool is_digit(char ch);
	double calculate_postfix();
	void dispose_operator( char chRead );
private:
	string postfix;
	Stack<double>theStack;
};
#endif

⌨️ 快捷键说明

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