摘要: /** * Finds and prints n prime integers * Jeff Offutt, Spring 2003 */ private static void printPrimes(int n) { int curPrime; //Value currently conside 阅读全文
posted @ 2018-03-26 23:04 capslock1 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 实验报告 a) The brief description that I install junit, hamcrest and eclemma. Junit,hamcrest 上网下载junit,hamrest包,然后在项目中新建文件夹lib,复制包到其中,然后单击项目->build path - 阅读全文
posted @ 2018-03-25 22:21 capslock1 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Identify the fault. 函数findLast,错误得到结果是-1,因为i>0,在i=1时就结束,所以修改为for(int i = x.length-1; i >=0 ; i--) 函数lastZero,错误,得到结果0;因为它找到第一个0就结束,所以修改为for(int i = x. 阅读全文
posted @ 2018-03-14 20:49 capslock1 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 问题:在使用glut库时,由于库的引用问题,出过各种各样的错误,后来在老师的示范,百度的查询,得以解决,后来又报了找不到文件的错,但使用的是绝对地址。 解决方法:不能只是将文件考到项目中,还有在项目的header files,shader files,souce files,加入相应地文件。 阅读全文
posted @ 2018-03-12 22:15 capslock1 阅读(62) 评论(0) 推荐(0) 编辑