栈的应用-简单计算器

/* 2*(3+4) 234+* */ #include<bits/stdc++.h> using namespace std; stack<char> s,s2; string str,ret; int priority(char c) { if(c=='(') return 1; else if(c=='+') return 2; else if(c=='-') ret
相关文章
相关标签/搜索