【问题标题】:Scheme program to evaluate arithmetic expression计算算术表达式的方案程序
【发布时间】:2016-10-18 14:45:40
【问题描述】:

我想计算scheme中的算术表达式 运算符可以是div,mul,sub,add 对应/,*,-,+

(arith_eval exp)

Above exp can be a scheme number or (operator expr_1 expr_2)

Input : (arith_eval '(add (sub 8 2) 3))
Expected O/p : 9

我对计划很陌生,我不知道如何开始,请帮助我:(

【问题讨论】:

    标签: functional-programming scheme racket evaluation arithmetic-expressions


    【解决方案1】:
    猜你喜欢
    • 2020-04-16
    • 2012-03-17
    • 1970-01-01
    • 2011-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多