main.cpp
来自「用C++编写的一个计算器」· C++ 代码 · 共 21 行
CPP
21 行
//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 + =
减小字号Ctrl + -
显示快捷键?