第一知识网
www.001rz.com3、 算术表达式求值演示
日期:2015-01-23 00:22:11 人气:63
//基本上已经OK了~~~~/*测试用例: 8;1+2+3+4;88-1*5;1024/4*8;1024/(4*8);(20+2)*(6/2); 3-3-3;8/(9-8);2*(6+2*(3+6*(6+6)));(((6+6)*6+3)*2+6)*2*/#include#include#includeusing namespace std;typedef int ElemType;const int STACK_INIT_SIZE=10