我正在嘗試使用SICP,但得到了一些代碼。所以我開始:#lang scheme(word 'comp 'uter)返回的錯誤:函數(字)未定義。即使我嘗試將其復制到IDE(運行)中:(define word? (let ((number? number?) (symbol? symbol?) (string? string?)) (lambda (x) (or (symbol? x) (number? x) (string? x)))))還是一樣。我認為這可能與語言版本有關。上面是“簡單方案”中的內容,當我在SICP中準確介紹代碼時:(define (sqrt x) (sqrt-iter 1.0 x))IDE返回sqrt-iter未定義??梢栽诘谝徽轮姓业皆摯a:http : //mitpress.mit.edu/sicp/code/index.html
添加回答
舉報
0/150
提交
取消