查看单个帖子
  #1 (permalink)  
旧 2008-05-03
cghreal cghreal 当前离线
初级会员
 
注册日期: 2008-05-03
帖子: 2
cghreal 正向着好的方向发展
默认 求助,关于scheme的 一个问题

这学期在学programming language,以scheme为基础的。
想请问下scheme高手

Accept as input a infix expression. The program should be
able to handle fairly complex and lengthy expressions. Convert
this infix expression into a postfix expression. For example,
the prefix expression (2+(4* 5))/(8-6) will be converted to the
postfix expression 245*+86-/.

该如何用 scheme来解决
输入用什么形式,是 string还是list,如何用 schme模拟一个 stack呢 ,谢谢
回复时引用此帖