摘要: 平台是师兄师姐他们搭好的,我以前用ruby级别很低,只会建立项目什么的,不过NetBeans有专门对ruby开发的简单平台。说它简单是因为它只是ruby的开发,没有其它语言开发环境。具体建立一个项目后,在控制器里建立一个.rb文件,我写进去的只有数据库控制,具体程序: def qianfeng @station=Station .find(:all) @sqlstr=Simulationresul... 阅读全文
posted @ 2009-11-21 10:31 ninahan 阅读(188) 评论(1) 推荐(0) 编辑
摘要: import x10.util.Random;import x10.io.Console;public class Histogram { /** * Compute the histogram of the array a in the rail b. */ public static def run(a:Array[int](1), b: Rail[int]) {//定义一个数组a元素都是1f... 阅读全文
posted @ 2009-11-21 10:05 ninahan 阅读(137) 评论(0) 推荐(0) 编辑