搜索资源列表
acculator.rar
- 计算器,支持四则混合运算,以及运算符和括号的优先级。
Expression-D.S.Report2
- 数据结构课程设计报告,算术表达式求值,自动辨别算符优先级,括号,将char型转换成int计算,再将结果显示,具有精美用户界面-data structure curriculum design, arithmetic expression evaluates automatically identify operator precedence, in brackets, char to int conversion type, the result shows that the user inte
SQCX_WZ
- 下面这个程序支持加+ 减- 乘* 除/ 阶乘! 开方? 平方^ 取模% 等运算 支持括号和括号内优先级 可以输入负数 不过输入负数时需要用括号括上 这个程序 一定有不少 缺点 我也没有用一些表达式 进行运算验证 这个验证的过程就交给大家把 如果各位发现输入的表达式 计算错误的话 请将表达式和结果 发到帖子上来 我会修改的
Expression
- C表达式计算,支持优先级,括号,利用堆栈的数据结构
biaodashiqiuzhi
- 题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。 概要设计 1、顺序扫描中缀算术表达式,当读到数字时直接将其送至输出队列中; 2、当读到运算符时,将栈中所有优先级高于或等于该运算符弹出,送至输出队列中,再将当前运算符入栈; 3、当读入左括号时,即入栈; 4、当读到右括号时,将靠近栈顶的第一个左括号上面的运算符全部一次弹出,送至输出队列中,再删除栈中的左括号。 5、使用VS栈来存储读入的操作和运算结果,然后进行数字字符到数值的转换。
表达式计算(加减乘除与或非及括号)C语言
- 参考书c语言版得严蔚敏的数据结构 利用堆栈实现根据表达式运算符优先级比较完成正确的计算 程序设计有运算符优先级表可以自己设定运算符优先级
matchalgrithm.rar
- 检验括号是否匹配可以用堆栈来实现,当遇到 (、[或{进栈,遇到 ) 、]或}出栈进行匹配检验,如果出现不匹配的情况立即结束,否则继续取下一个字符。如果没有遇到不匹配的情况,最后判断栈是否为空,栈为空,括号匹配,否则不匹配。并设置大、中、小括号的优先级(priory)为3、2、1 ,且设优先级(priory)的初始值为4。从第一个字符开始扫描表达式,如果是左括号,和栈中的括号的优先级对比,如果优先级比栈中括号的优先级高或者等于栈中的优先级,则说明不匹配,如果优先级小于栈中括号的优先级,将这个括
main
- 表达式运算(计算器),用栈的方法求表达式的值,包括括号及优先级-Expression operator (Calculator), using the stack method of expression for the value, including the brackets and Priority
biaodashiqiuzhisuanfa
- 扩充课堂上讨论的表达式求值算法的功能,使得算法除了能进行加(+)、减(–)、乘(*)、整除(/) 运算之外,还能进行乘方(^)运算。 乘方运算符的优先级高于加、减、乘、整除运算符,低于括号;多个乘方运算符连续出现时,从右往左计算。 输入数据从文本文件“实习3数据.txt”中读取。该文件只有一行:一个用分号(;)结尾的表达式。 输出结果显示在屏幕上。 例如,若从文本文件中读取的数据是: 4+(2^2^3*4-120)*2 屏幕显示计算结果: 1812
a1
- 数据结构中试验--表达式求值,通过栈中后进先出的特点,解决了表达式中加减乘除以及括号的优先级问题-Data structure in the pilot- for the value of expression through the Last In First Out stack of features, to resolve the expression in brackets in the calculation, as well as the priority issues
calculator
- 简单计算器 能够实现简单的加减乘除运算,并且实现了部分运算的优先级,可以加括号,晴空等。-A simple calculator to perform simple addition and subtraction multiplication and division operations, and achieve the priority of some operations can be added in parentheses, clear sky and so on.
reversed_Polish_notation
- 逆波兰算法,用以实现四则混合运算,可以支持加,减,乘,除,括号的优先级判断,得到运算结果。-RPN algorithm to achieve four hybrid operation, to support add, subtract, multiply, divide, to determine the priority of parentheses to get the results of operations.
Calculator
- 实现了一个简单的计算器功能,能够准确完成括号的匹配和运算符优先级的判别-Implements a simple calculator function, can accurately complete the matching brackets and operators determine priority
biaodashiqiuzhi
- 实现表达式求值,对表达式进行运算,考虑运算符的优先级,包括对括号进行操作-Achieve an expression, the expression computing, considering the priority of operators, including the operation of the brackets
jisuanqi
- 在计算器的设计中,加减乘除和括号功能是有优先级的,括号优先于乘除,乘除优先于加减。-In the calculator design, addition, subtraction and parentheses have priority functions, parentheses precedence over multiplication and division, multiplication and division take precedence over addition and
Arithmetic
- 四则运算主要是用字符串形式接收一个带括号的四则运算表达式,然后按照四则运算优先级的算法先括号,后乘方,乘除,加减这样的顺序将这个算式解出。-Arithmetic is mainly used to receive a string of four operations with the expression in parentheses, and then follow the four operations in parentheses first priority of the algori
Unix-Calculator
- (1)加减乘除法基本运算 (2)四则运算,支持括号改变优先级 (3)数学函数支持,包括: 正弦运算sin,余弦运算cos,e为底的对数运算ln,自然对数e次方运算exp,开平方根运算sqrt 次幂运算power,求绝对值运算fabs。 -(1) basic operations of addition and subtraction multiplication and division (2) arithmetic, support
Expression-evaluation
- 任意输入数学运算表达式分别采用两种算法求值,分别是中缀表达式直接求值和修改成后缀表达式求值。表达式中包含的运算符有:加法+,减法-,乘法*,除法/,括号(),乘方#等运算符。运算符的优先级和结合性符合数学运算法则-Any input math expressions using two algorithms evaluated, infix expression directly evaluated and modified the postfix expression evaluation.
compute
- 表达式求值:给定一个浮点数混合运算的中缀表达式,分别实现:转换成为后缀表达式,然后求值;直接对中缀表达式求值两种求值算法两种实现方法。表达式中包含的运算符:加法+,减法-,乘法*,除法/,括号(),乘方#等运算符。运算符的优先级和结合性符合数学运算法则。比如:命令行输入 (-2.0)+(1.0+2.0)*3.0-2.0#2.0回车 (1)中缀表达式输出: (-2.0)+ (1.0+2.0)*3.0-2.0#2.0=3.0 (2)后缀表达式输出: -2.0 1.0 2.0 + 3.
STACK-CALCULATOR
- 以c++为语言的基于栈的计算器源代码,支持括号优先级操作,而且可以对异常错误进行处理-c++ stack calculator