摘要
算术运算式可以表示成中序式、波兰式和逆波兰式,而在编译过程中一般采用波兰式或逆波兰式。就算术运算式转换成波兰式和逆波兰式的问题,给出了利用栈来实现的C语言算法。
Arithmetic operation can be expressed in Chinese expression,Polish expression or inverse Polish expression.In the course of compiling,the Polish expression or inverse Polish expression.In the course of compiling,the Polish expression or inverse Polish expression is usually used.The paper discusses the transform of the Polish expression and inverse Polish expression and points out that C language arithmetic operation can be realized by using stack.
出处
《新余高专学报》
2004年第2期26-28,共3页
Journal of XinYu College
关键词
算法
波兰式
逆波兰式
Arithmetic operation
Polish notation
Inverse Polish notation