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

📄 operation.h

📁 可进行大数的加减乘除、阶乘、三角函数、幂指数(指数只支持整数)的运算
💻 H
字号:
#include <iostream>
#include <string>
#include <stack>
#include <iomanip>
#include "Arithmetic.h"

//using namespace std;

class Operation
{
public:

	//初始化
	Operation(std::string NumLine);
	Operation(char* NumLine);

	//计算表达式
	std::string Operations();

private:

	//比较算术的优先级
	char CompareSign(char c1, char c2);

	//判断是符号还是数字
	bool IsNumber(char c);

	//禁止未初始化
	Operation();

	//计算
	Arithmetic Operate(Arithmetic& a, char c, Arithmetic& b);

private:
	std::string m_NumLine;
};

⌨️ 快捷键说明

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