摘要: centos: 阅读全文
posted @ 2017-04-07 11:34 LuoChenGang 阅读(123) 评论(0) 推荐(0)
摘要: 首先假设有6个楼层。最初,电梯在顶层,先实现电梯从顶层到第一层的过程: #include <iostream>#include<stdio.h>#include<string.h>#include<time.h>#include<stdlib.h>#include<windows.h>using n 阅读全文
posted @ 2017-03-21 09:10 LuoChenGang 阅读(4276) 评论(0) 推荐(0)
摘要: 测试: 书上习题: a) b)比如循环测试错误:while(numPrimes < 3) c)n=1 d) 节点覆盖: {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14} 边覆盖: {(0,1), (1,2), (1,10), (2,3), (3,4), (3,7), (4,5 阅读全文
posted @ 2017-03-14 23:04 LuoChenGang 阅读(128) 评论(0) 推荐(0)
摘要: HW3: 安装Junit(4.12)、Hamcrest(1.3)过程: 1) 首先在网上下载Junit和Hamcrest,然后放在一个文件夹里。 2) 然后点击JRE System Library,继续点击下级的build path,以及其下级的configurebuildpath 3) 选择add 阅读全文
posted @ 2017-03-11 21:33 LuoChenGang 阅读(242) 评论(0) 推荐(0)
摘要: Problem 1: 1) 循环里的i>0应该改为i>=0 2) x为空数组时 3) x = [2,3,5], y = 5 4) x = [2,3,5], y = 6 Problem2: 1) 循环遍历的顺序反了,循环体应该改成: for (int i = x.length – 1; i >= 0; 阅读全文
posted @ 2017-03-02 23:11 LuoChenGang 阅读(124) 评论(0) 推荐(0)
摘要: URL: http://www.cnblogs.com/tjulcg/ 遇到的错误(改正后的): 说明: 这是2016年12月份WEB大作业里的一段代码,最初findByUsername里的SQL语句写错了。和同学交流后先是发现少了转义符号/,后来发现还是无法正常运行。找了一两个小时后,才发现这段还 阅读全文
posted @ 2017-02-27 20:27 LuoChenGang 阅读(234) 评论(0) 推荐(0)