请问有数据结构和计算机英语的高人么?

来源:百度知道 编辑:UC知道 时间:2024/05/25 07:09:27
请高人帮忙啊...Write a simple calculator program that takes as input an infix expression, and outputs the equivalent postfix expression and the evaluation of the infix expression. Assume that the input may contain (floating) numbers, arithmetic operations +,-,*, and /, as well as parentheses. However, the expression need not b e fully parenthesized, and when parentheses are missing, the usual C++ precedence rules are used to determine the order of evaluation. When an invalid infix expression is entered, then an error message will be printed and the user will be re-prompted to enter a new infix expression. The program will continue until the user type ENTER (‘\n’) without expressions. 这是介绍,1. Converts a valid infix expression to the corresponding postfix expression and prints it to the standard output (cout).
2. Evaluates the valid infix expression and prints the value to the standard output (cout).
3. Error checking for invalid infix expressions.
4. Must use the STL sta

收件一个简单的计算器程序,需要投入的缀表达,和产出相当于后缀表达和评价中缀表达式。假设输入可能包含(浮动)数量,算术运算+,-,*,和/ ,以及括号内。然而,表达不一定要充分括号,在括号内丢失,通常C + +的优先规则来确定的顺序评价。当一个无效的中缀表达式输入,然后错误讯息将印刷和用户将重新提示进入了一个新缀的表达。该计划将继续下去,直到用户输入键( ' \ ñ ' )没有表情。这是介绍, 1 。转换一个有效的中缀表达了相应的后缀表达和打印到标准输出(法院) 。
2 。评估有效缀表达和印刷品的价值标准输出(法院) 。
3 。错误检查无效缀表达式。
4 。必须使用的STL堆栈级
5 。 Compilable和运行的曼宁。
6 。按照正常的C + +的优先规则。
7 。处理双号码。