文件名称:Expression-evaluation
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-01-22
- 文件大小:
- 6.62mb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
输入中缀算术表达式S,S中的操作数为非负整数,只含+,-和*,/运算,也可能含有括号(),运算符的计算顺序和实际四则运算的计算顺序相同. 输出表达式S的值. 注意除法运算只取整数部分,例如1/2=0.
Input
输入有多组数据.
每组数据是一个算术表达式S,S的长度不超过100. 输入的S保证合法,而且不包含多余的空格或制表符. S的操作数、中间结果和最终结果都不会超过int类型的范围,也不会出现除数为0的情况.
输入以#号结束.
Output
对于每个算术表达式S,输出S的值,每个输出占一行.-Input infix arithmetic expression S operand S in a non-negative integer, containing only+,-,*,/operator, may also contain brackets (), the same as the order of the calculation of the calculation order of the operator and the actual four computing.the value of the output of the expression S Note divide operations take only integer part, for example, 1/2 = 0.
Input
Input a plurality of sets of data.
Each set of data is an arithmetic expression S S length of no more than 100. Input S to ensure legitimate, but does not contain extra spaces or tabs. Operand of S, intermediate and final results will not exceed the int range of a type, and the divisor is 0, the situation does not occur.
Input end with a# sign.
Output
For each of the arithmetic expression S, the output value of S, and each output per line.
Input
输入有多组数据.
每组数据是一个算术表达式S,S的长度不超过100. 输入的S保证合法,而且不包含多余的空格或制表符. S的操作数、中间结果和最终结果都不会超过int类型的范围,也不会出现除数为0的情况.
输入以#号结束.
Output
对于每个算术表达式S,输出S的值,每个输出占一行.-Input infix arithmetic expression S operand S in a non-negative integer, containing only+,-,*,/operator, may also contain brackets (), the same as the order of the calculation of the calculation order of the operator and the actual four computing.the value of the output of the expression S Note divide operations take only integer part, for example, 1/2 = 0.
Input
Input a plurality of sets of data.
Each set of data is an arithmetic expression S S length of no more than 100. Input S to ensure legitimate, but does not contain extra spaces or tabs. Operand of S, intermediate and final results will not exceed the int range of a type, and the divisor is 0, the situation does not occur.
Input end with a# sign.
Output
For each of the arithmetic expression S, the output value of S, and each output per line.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
表达式求值\Debug\表达式求值.exe
..........\.....\表达式求值.ilk
..........\.....\表达式求值.pdb
..........\ipch\中缀转后缀-e367c6e0\中缀转后缀-609d6b13.ipch
..........\....\表达式求值-9cff204\表达式求值-259ce51f.ipch
..........\表达式求值\Debug\CL.read.1.tlog
..........\..........\.....\CL.write.1.tlog
..........\..........\.....\link-cvtres.read.1.tlog
..........\..........\.....\link-cvtres.write.1.tlog
..........\..........\.....\link.5604-cvtres.read.1.tlog
..........\..........\.....\link.5604-cvtres.write.1.tlog
..........\..........\.....\link.5604.read.1.tlog
..........\..........\.....\link.5604.write.1.tlog
..........\..........\.....\link.read.1.tlog
..........\..........\.....\link.write.1.tlog
..........\..........\.....\mt.read.1.tlog
..........\..........\.....\mt.write.1.tlog
..........\..........\.....\rc.read.1.tlog
..........\..........\.....\rc.write.1.tlog
..........\..........\.....\stdafx.obj
..........\..........\.....\vc100.idb
..........\..........\.....\vc100.pdb
..........\..........\.....\表达式求值.exe.embed.manifest
..........\..........\.....\表达式求值.exe.embed.manifest.res
..........\..........\.....\表达式求值.exe.intermediate.manifest
..........\..........\.....\表达式求值.lastbuildstate
..........\..........\.....\表达式求值.log
..........\..........\.....\表达式求值.obj
..........\..........\.....\表达式求值.pch
..........\..........\.....\表达式求值_manifest.rc
..........\..........\ReadMe.txt
..........\..........\stdafx.cpp
..........\..........\stdafx.h
..........\..........\targetver.h
..........\..........\表达式求值.cpp
..........\..........\表达式求值.vcxproj
..........\..........\表达式求值.vcxproj.filters
..........\..........\表达式求值.vcxproj.user
..........\表达式求值.sdf
..........\表达式求值.sln
..........\表达式求值.suo
..........\ipch\中缀转后缀-e367c6e0
..........\....\表达式求值-9cff204
..........\表达式求值\Debug
..........\Debug
..........\ipch
..........\表达式求值
表达式求值