test.cpp
来自「不带括号算术式求值另外一个版本 可以自动判断优先级 排除空格等字符影响」· C++ 代码 · 共 22 行
CPP
22 行
#include<iostream.h>
#include<math.h>
#include<ctype.h>
#include"lStack.h"
#include"Calculator.h"
int main()
{
Calculator<double> a;
int choice=1;
while(choice==1)
{
cout<<"Enter the expression(end with \"=\") :\n";
a.run();
cout<<"if u want to continue,enter \"1\": ";
cin>>choice;
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?