设计算法判断一个算术表达式的圆括号是否正确配对。 (提示: 对表达式进行扫描,凡遇到 ( 就进栈,遇 ) 就退掉栈顶的 ( ,表达式被扫描完毕,栈应为空。...
代码说明:
设计算法判断一个算术表达式的圆括号是否正确配对。 (提示: 对表达式进行扫描,凡遇到 ( 就进栈,遇 ) 就退掉栈顶的 ( ,表达式被扫描完毕,栈应为空。-Design algorithm to determine an arithmetic expression is correct matching parentheses. (Hint: regular expressions to scan for, in any case where (in the case into the stack, the event) on the Top-to return the (, expression was scanned, the stack should be empty.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!