摘要
由于用计算机判断中缀表达式中运算符的运算次序比较困难,所以往往将它转换成前缀表达式或后缀表达式,本文研究将中缀表达式转换为前缀表达式的算法,算法采用C++语言描述。
As it is comparatively difficult to use computers to judge the operation order of operation symbols in infix expressions,the common method is to convert infix expressions into prefix ones or suffix ones. This article focuses on the algorithm to convert infix expressions into prefix ones,using C+ +language.
出处
《湖北广播电视大学学报》
2005年第3期124-126,共3页
Journal of Hubei Radio & Television University
关键词
前缀表达式
中缀表达式
prefix expressions infix expression