Chinaunix首页 | 论坛 | 博客
  • 博客访问: 209676
  • 博文数量: 136
  • 博客积分: 2919
  • 博客等级: 少校
  • 技术积分: 1299
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-11 09:08
文章分类

全部博文(136)

文章存档

2013年(1)

2011年(135)

我的朋友

分类: LINUX

2011-12-05 08:44:41

  1. ;; mht created on Nov 8, 2011

  2. ;; Fahrenheit-Celsius : number -> number
  3. ;; to translate Fahrenheit to Celsius
  4. ;; example : (Fahrenheit-Celsius 100) should produce 37
  5. (define (Fahrenheit->Celsius fah)
  6.   (* (/ 5 9) (- fah 32)))

  7. ;; test
  8. (= (Fahrenheit->Celsius 32) 0)

  9.  ;(convert-gui Fahrenheit->Celsius)

  10.  ;(convert-repl Fahrenheit->Celsius)
  11.  
  12.  (convert-file "in.dat" Fahrenheit->Celsius "out.dat")
阅读(231) | 评论(0) | 转发(0) |
0

上一篇:exam2.1.1

下一篇:exam2.2.2

给主人留下些什么吧!~~