📄 main.cpp
字号:
//Main.cpp
#include <iostream>
#include <conio.h>
#include "Expression.h"
using namespace std;
int main(void){
char c[80];
cout<<"STRUCTURE\n"
<<"This program can solve simple formula \n"
<<"by adder, subtraction, multiplication and division, \n"
<<"whose operands are reals, including minus reals.\n\n";
cout<<"Please iuput a expresion by the end of '='\n";
cin>>c;
Expression ex(c);
cout<<"The result is "<<ex.calPostExpression()<<endl;
cout<<"Press any key to quit\n";
getch();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -