文件名称:jsq
介绍说明--下载内容均来自于网络,请自行研究使用
简单的计算器
规则1:实现 +、-、X、/ 四则运算,数据仅包含整数,不考虑计算结果溢出的情况
规则2:程序仅需要实现类似"a + b * c / d - e" 这种类型字符串的计算,式子中操作符的个数不超过10个。其他复杂情况不考虑。
例如
输入: 1 + 2 * 3 - 4 / 2
输出: 5-A simple calculator
Rule 1: achieve+,-, X, \/four operations, the data contains only integers, not considering the calculation results of an overflow condition
Rule 2: program is needed to achieve similar " a+ b* C/D- e " this type string calculation formula of operator, the number does not exceed 10. Other complex situation is not considered.
For example
Input: 1+ 2* 3- 4/2
Output: 5
规则1:实现 +、-、X、/ 四则运算,数据仅包含整数,不考虑计算结果溢出的情况
规则2:程序仅需要实现类似"a + b * c / d - e" 这种类型字符串的计算,式子中操作符的个数不超过10个。其他复杂情况不考虑。
例如
输入: 1 + 2 * 3 - 4 / 2
输出: 5-A simple calculator
Rule 1: achieve+,-, X, \/four operations, the data contains only integers, not considering the calculation results of an overflow condition
Rule 2: program is needed to achieve similar " a+ b* C/D- e " this type string calculation formula of operator, the number does not exceed 10. Other complex situation is not considered.
For example
Input: 1+ 2* 3- 4/2
Output: 5
(系统自动生成,下载前可以参看下载内容)
下载文件列表
jsq.cpp