2012年4月5日

poj 3295 前缀表达式求值

摘要: 前缀表达式求值,和后缀一样,只不过是从后往前读 1 #include <iostream> 2 #include <string.h> 3 #include <stdio.h> 4 #include <stack> 5 #include <algorithm> 6 using namespace std; 7 8 bool change(char s[],bool val[]) 9 {10 stack <bool> nd;11 bool a,b;12 int len=strlen(s),i,j;13 for(i=0;i&l 阅读全文

posted @ 2012-04-05 16:35 Inpeace7 阅读(247) 评论(0) 推荐(0) 编辑

导航