📄 expression.cpp
字号:
// Expression.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "ExpressionCompli.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char Strexp[1000];
double ans;
cout<<"Please Input Expression:"<<endl;
cin>>Strexp;
CExpression exp;
exp.SetExpression((pExpression)Strexp);
ans=0;
if (exp.Compile()==ERROR_NULL && exp.Solve(ans)==ERROR_NULL){
cout<<"Answer:"<< ans;
}else{
cout<<"Error!"<<endl;
}
getchar();
getchar();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -