搜索资源列表
mingtiyansuan
- (1)利用二叉树来计算公式的真值。首先利用堆栈将中缀形式的公式变为后缀形式;然后根据后缀形式,从叶结点开始构造相应的二叉树;最后按后序遍历该树,求各子树之值,即每到达一个结点,其子树之值已经计算出来,当到达根结点时,求得的值就是公式之真值。 (2)逻辑变元的标识符不限于单字母,而可以是任意长的字母数字串。 (3)根据用户的要求显示表达式的真值表。
middlenumberchanggetolatter
- 中缀表达式转变为后缀表达式的代码,并且求出值返回
tree
- 算术表达式与二叉树之间存在着对应关系,编写把以前缀形式输入的合法算术表达式转换为中缀表达式,再转换为后缀表达式,并求表达式的值-Arithmetic expressions with binary tree there is a correlation between the preparation of the form to enter the legitimate prefix arithmetic expression conversion infix expression, and t
mid-lat
- 一个数学表达式,先输入中缀表达式然后变成后缀表达式,并求出这个式子的值-A mathematical expression, and then to enter the infix expression into postfix expression, and calculated the value of this formula
formula-for-calculating--true-value
- 计算命题演算公式的真值,所谓命题演算公式是指由逻辑变量(其值为TRUE或FALSE)和逻辑运算符∧(AND)、∨(OR)和┐(NOT)按一定规则所组成的公式(蕴含之类的运算可以用∧、∨和┐来表示)。公式运算的先后顺序为┐、∧、∨,而括号()可以改变优先次序。已知一个命题演算公式及各变量的值,要求设计一个程序来计算公式的真值。 要求: (1)利用二叉树来计算公式的真值。首先利用堆栈将中缀形式的公式变为后缀形式;然后根据后缀形式,从叶结点开始构造相应的二叉树;最后按后序遍历该树,求各子树之值
zhan
- 能够将一个输入的中缀表达式(数字为一位或两位数)转换成后缀表达式,并能求出表达式的值。-Convert an input infix expression (figures for the one or two digits) the the suffix expression, and to evaluate the expression.
sizeyunsuan
- 四则运算表达式求值,将四则运算表达式用中缀表达式,然后转换为后缀表达式,并计算结果。-Four arithmetic expression uation, the four arithmetic expressions used in infix expression, and then converted to a postfix expression, and calculate the results.
expression-evaluate
- 将中缀表达式转换成后缀表达式,再将后缀表达式求值-Convert infix expression into postfix notation, then postfix expression uation
Arithmetic-expression-evaluation
- [问题描述] 表达式计算是实现程序设计语言的基本问题之一。也是栈的应用的一个典型例子。设计一个程序,演示用算符优先法或转换成后缀表达式方法对算术表达式进行求值的过程。 [基本要求] 以字符序列的形式从终端输入语法正确的、不含变量的整数表达式。利用中缀表达式向后缀表达式转换的方法,实现对算术四则混合运算表达式的求值。-Expression computing is to achieve one of the basic problems of program design langu
24-point-embedded-simple-calculator
- 24点内简易计算器的实现。中缀表达式变为后缀表达式然后求值-Simple calculator within the 24-point implementation. Infix expression into postfix expression is then uated
operation
- 用栈实现表达式求值,将中缀表达式转换成后缀表达式-Use the stack to uate the expression and convert the infix expression into a suffix expression
write_expjession
- 实现中缀变后缀表达式求值,用VC编写的,大家可以来看看,发表下意见也行,-Implement infix suffix expression uation, using VC to write, you can see, the opinion,
DSinfixtopostfix
- 简单的中缀表达式转后缀表达式并求值的程序。支持加减乘除。内置说明。(A simple program that converts infix expression to postfix, and calculates the postfix expression. Symbol + - * / = ( ) supported.)