在ST3里写了一个C++程序,如下:
#include
using namespace std;
int main()
{
float a,b;
char oper;
cout <<"请输入一个表达式(eg.1+2):" <
>a >>oper >>b;
if (oper=='+')
{
cout <
<
<
<<'=' <
<