03 2018 档案

H3
摘要:b) t1=(n=3),t2=(n=5).当数组越界时,t2能更好的发现问题。 c)当n=1时,程序跳过循环 d) node coverage: {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16} edge coverage: {(1,2),(2,3),(3,4),(4 阅读全文

posted @ 2018-03-25 22:03 panbu 阅读(129) 评论(0) 推荐(0)

homework2
摘要:1. for(int i =x.length-1;i>0;i--) 改正为: for(int i =x.length-1;i>=0;i--) 2. 当 x[]为空时,不执行异常 3. x = [2, 3, 5]; y = 3,执行了fault,且结果正确。 4. x = [2, 3, 5]; y = 阅读全文

posted @ 2018-03-15 21:24 panbu 阅读(100) 评论(0) 推荐(0)

homeword1
摘要:以前经常有数组越界之类的问题,通过一行一行代码排除问题,局部分支循环来排查问题. 阅读全文

posted @ 2018-03-12 23:21 panbu 阅读(74) 评论(0) 推荐(0)

导航