棧的應用-簡單計算器

/* 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
相關文章
相關標籤/搜索