expression.h

来自「把中缀表达式转换为后缀表达后」· C头文件 代码 · 共 23 行

H
23
字号
#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 + =
减小字号Ctrl + -
显示快捷键?