文件名称:Expression-evaluation

介绍说明--下载内容均来自于网络,请自行研究使用

输入中缀算术表达式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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





表达式求值\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

..........\表达式求值

表达式求值

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org