2019315栈的应用:表达式的计算

#include<iostream> #include<stack> #include<stdlib.h> #include<ctype.h> #include<string.h> using namespace std; //优先级函数 int f(char x) { if(x=='*'||x=='/') return 3; else if(x=='#')return 0;
相关文章
相关标签/搜索