对三个数进行四则运算

#include "iostream.h"void main(void){ float fun(float e,char f,float g);//声明函数原型 float a,b,c,d; char oper1,oper2; cout<<"请输入一个表达式(eg.1+2*3):"<<endl; cin>>a>>oper1>>b>>oper2>>c; //根据"+,-,*,/"运算符号优先级分2种情况 //情况1; if((oper1=='*')||(oper1=='/')) { d=fun(a,oper1,b); d=fun(d,oper2,c); ...
c/c++/VC6.0 | 2010-04-12 17:23 | 阅读 646 次 | 评论 0 条