2013年5月3日
摘要: // zzz.cpp //#include"zzz.h"void evaluation(string s){LinkStack S;InitStack(S);char ch;double a,b;istringstream iss(s);iss>>ch;while(ch!='#'){if(!OpMember(double(ch))) push_stack(S,(double)ch-'0');else{pop_stack(S,a); pop_stack(S,b);push_stack(S,operatorr(b,ch,a));}is 阅读全文
posted @ 2013-05-03 17:09 向云武 阅读(216) 评论(0) 推荐(0) 编辑