没有合适的资源?快使用搜索试试~ 我知道了~
RPN计算器 Program Input Each line of the input file (prob12.in) contains a series of numbers and operators. The program must evaluate these lines as RPN expressions. All tokens are separated by one or more spaces. Numbers may be negative. Valid operators are +(addition), -(subtraction), *(multiplication) and /(division). The last line of the file contains only the word END: 16 3 7 + * 4 32.125 13 – * 20 + 5 –3 * 4 2 / 6 3 1 – / + + END Program Output The program will print the computed result of each RPN expression on a separate line. 160 96.5 -10
资源推荐
资源评论
资源评论
u011098035
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功