Converting infix notation to postfix notation.
中缀表达式到后缀表达式的转换。
Prefix and postfix notation have three common features.
前缀和后缀表示法有三项公共特征。
In postfix notation, the operator comes after its operands.
在后缀表示法中,操作符位于操作数后面。
The three most common forms of notation in arithmetic expressions are infix, prefix, and postfix notations.
算术表达式中最常见的表示法形式有中缀、前缀和后缀表示法。
Infix notation is a common way of writing expressions, while prefix and postfix notations are primarily used in computer science.
中缀表示法是书写表达式的常见方式,而前缀和后缀表示法主要用于计算机科学领域。
Postfix notation is also known as reverse Polish notation (RPN) and is commonly used because it enables easy evaluation of expressions.
后缀表示法也称逆波兰表示法(reverse Polish notation,RPN),因其使表达式求值变得轻松,所以被普遍使用。
In postfix notation, the need for parentheses is eliminated and the priority of the operators is no longer relevant. You can use the following algorithm to evaluate postfix expressions.
在后缀表达式中,不需要括号,而且操作符的优先级也不再起作用了。
In postfix notation, the need for parentheses is eliminated and the priority of the operators is no longer relevant. You can use the following algorithm to evaluate postfix expressions.
在后缀表达式中,不需要括号,而且操作符的优先级也不再起作用了。
应用推荐