C++实现四则运算(后缀表达式,包含括号,多位数)

符号之间的运算优先级以下:c++ #include<bits/stdc++.h> using namespace std; string s; stack<int>val; stack<char>symbol; //操做符之间的优先级的比较 char cmp(char a,char b){ if(a=='#'){ if(b=='#'){ return '='; }else{
相关文章
相关标签/搜索