📄 expression.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 + -