用堆栈实现表达式计算(Using stack to implement expression calculation).docVIP

  • 3
  • 0
  • 约3.34千字
  • 约 8页
  • 2017-07-24 发布于河南
  • 举报

用堆栈实现表达式计算(Using stack to implement expression calculation).doc

用堆栈实现表达式计算(Using stack to implement expression calculation)

用堆栈实现表达式计算(Using stack to implement expression calculation) Using stack to implement expression calculation -------------------------------------------------------------------------------- A stack to achieve the expression calculation example, the program introduced two stack, operation components stack and operator stack. When a program evaluates an expression, Scan numeric expressions from left to right. When you encounter numbers, count them into the component stack The top of the operator stack compares the precedence of the operator to the upper stack, whereas the stack handles the other.

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档