zoj 1418||poj 1686 Lazy Math Instructor
第一次用后缀表达式求表达式的值,比中缀表达式求好写多了!1Y~
#include
#include
#include
#include
using namespace std;
char opn[200],opnn=0,opc[200],opcn=0;
int dui[200],duin=0;
int cmp(char c)
{
if(c=='+'||c=='-')return 1
原创
2012-05-02 00:34:07 ·
1297 阅读 ·
0 评论