- 博客(1)
- 收藏
- 关注
原创 用栈实现表达式的求值
char getPriority(char theta1, char theta2) //获取theta1与theta2之间的优先级。Status Popnd(opndStack *S,int *n)//出栈 并返回到 n 中。void input(char s[]) //输入表达式 存入s[]数组中。Status Pushnd(opndStack *S,int n)//入栈。int isdigit(char c)//判断是否为操作数。int ischar(char c)//判断是否为运算符。
2023-05-11 14:41:19 67 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人