(define (number-checker)
(define userinput (read))
(cond
[(eof-object? userinput) print-fun)]
[else
(set! tries (+ 1 userinput))
(number-checker)]))
如果我想退出該程序爲了讓程序能夠打印有趣,我需要寫些什麼?固定錯字後x需要通過eof-object退出什麼值?計劃
也:
我不記得語法中的「[」... – alfasin 2012-07-11 05:07:47
uhm它的方案? [對於if/cond語句 – user1516649 2012-07-11 05:09:01
是你[*確定*](http://www.cs.cmu.edu/Groups/AI/html/r4rs/r4rs_6.html)? – alfasin 2012-07-11 05:10:08