搜索资源列表
java
- 编程:编程实现一个简单的四则运算计算器:从键盘输入一个四则运算表达式(没有空格和括号),遇等号"="说明输入结束,输出结果。 假设计算器只能进行加减乘除运算,运算数和结果都是整数,4种运算符的优先级相同,按从左到右的顺序计算(即:2+3*5先计算2+3,再计算5*5)。 示例:括号内是说明 -Programming: programming a simple calculator four operations: from the keyboard to enter a fou
jiandansuanshushide
- 五简单算术表达式的求值 要求: 1、 从键盘输入一个表达式:如(2-(4*5-2))/5=。 2、 操作数仅为一位整数1,2,3,…,9 3、 支持+ - * / ()等符号。 4、 支持运算符的优先级。 5、 支持括号的嵌套。 -Five simple arithmetic expression evaluation requirements: 1, from the keyboard input an expression: If (2- (4* 5-2))
Calculator
- 本程序是用JAVA实现的计算器,包括优先级,包括括号等的功能。-This procedure is achieved using JAVA calculator, including the priority, including the brackets function.
FunctionCalculator
- 非常强大的函数计算器,能实现20多种函数运算,自动判定优先级,支持带括号的计算;可以存储10个常数;对于输入表达式中的语法错误,可以提示出错误发生的位置和错误类型;可以撤销操作(undo)和继续操作(redo)。-Very strong function of the calculator, to achieve more than 20 kinds of computing function to automatically determine the priority, to support
EvaluteExpression
- 表达式求值,包含乘方括号等优先级,该实验为数据结构课程实验-Expression evaluation, including involution brackets, etc. priority, the experimental test for data structure course
sun0
- 计算表达式的数值,可以有括号,并自动进行匹配,有运算优先级,并按优先级来计算,不必有等号,即可出来结果-Calculated the value of the expression in parentheses, and automatically match the operational priority in accordance with the priority to calculate, do not have to have an equal sign, you can come
calculator
- 计算器英文文档,实现加.减.乘.除同时支持括号并且具有优先级-Calculator English documents, plus minus multiply. While supporting brackets and has priority
jianyijisuanqi
- C++之父的《程序设计与实践》书中的简易计算器改进版本,通过文法实现“()”,“*”,“/”等优先级运算,通过改进实现花括号“{}”的运算-C++ the father of the " program design and practice" simple calculator improved version of the book, through the grammar to achieve " ()" , " *" , " /&
ExpEvaluation
- 表达式求值算法:表达式求值是高级语言编译中的一个基本问题,是栈的典型应用实例。 任何一个表达式都是由运算数(operand)、运算符(operator)和界限符(delimiter)组成的。运算数既可以是常数,也可以是被说明为变量或常量的标识符;运算符可以分为算术运算符、关系运算符和逻辑运算符三类;基本界限符有左右括号和表达式结束符等。 由于某些运算符可能具有比别的运算符更高的优先级,因此表达式求值不可能严格地从左到右进行。为了正确地处理表达式,使用栈来实现正确的指令序列是一个重要的技术
calculator(all)
- win32控制台程序,简易科学型计算器,支持加减乘除四则运算以及多层括号优先级运算,支持对输入的算式进行语法检查,报告错误位置,采用LR1文法进行匹配运算和语法检查。-win32 console program, simple scientific calculator, supports four arithmetic operations, and multi-brackets priority operations, support for input formula syntax che
calculate
- 输入一个只包含个位数字的简单四则运算表达式字符串,计算该表达式的值 注: 1、表达式只含 +, -, *, / 四则运算符,不含括号 2、表达式数值只包含个位整数(0-9),且不会出现0作为除数的情况 3、要考虑加减乘除按通常四则运算规定的计算优先级 4、除法用整数除法,即仅保留除法运算结果的整数部分。比如8/3=2。输入表达式保证无0作为除数情况发生 5、输入字符串一定是符合题意合法的表达式,其中只包括数字字符和四则运算符字符,除此之外不含其它任何字符,不会出现计算溢出
biaodashiqiuzhi
- 实现表达式的四则运算,处理小数,多位数,含变量的表达式,包括括号的优先级处理,实现与用户的交互。-Achieve expression of four operations, handle decimals, multi-digit, expressions containing variables, including priority handling brackets, interact with the user.
Calculate
- 开发环境用的是 VS2008,选择项中没有,所以选者的是Visual C++ 1、简易的计算器的设计 2、使用VS2008运行生成之后可以计算简易的算术表达式,能识别各种算术运算符及括号的优先级 3、如输入算术表达式:3*(4-1+2)-2*3= 按回车键后能得到正确的结果 9-Development environment using VS2008, there is no choice, so choose those that Visual C++ 1, a simple
infixtopostfix
- 利用java语言实现中缀表达式转后缀表达式,能判断操作符的优先级,把括号去掉,可以接受空格的输入。-Java language use infix expression turn postfix notation, the operator can determine the priority of the brackets removed, can accept input space.
calculator
- 这是一个用C语言写的计算器。使用者可以输入一个算式,然后进行计算得出结果。该计算器支持加减乘除还有括号三种优先级的算式。-This is a calculator simulator.You can enter some equations then the simulator will callback a result to you.The calculator is able to handle add,subtract,multiply and divide
Binary-tree-arithmetic-calculation
- 构建二叉树结构进行四则运算。在控制台程序中输入书写习惯的表达式(可以包含括号),程序首先遍历提取运算符号,分辨优先级,然后构造二叉树,对二叉树后序遍历,运算得到结果。 输出运算结果和遍历顺序。-Construction of the structure of four binary arithmetic. Enter the writing habits of expression in the console program (may contain parentheses), the pro