码迷,mamicode.com
首页 > 其他好文 > 详细

hw3

时间:2018-03-26 00:38:45      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:blog   错误   测试结果   .com   技术   语句   while   pos   body   

技术分享图片

2.将MAXPRIMES的值设为4,t2会发生越界错误,t1不会。

3.令n = 1,此时不满足while语句的判断条件,不执行while循环。

4.

点覆盖:{1,2,3,4,5,6,7,5,6,8,9,10,11,12,13,14,15,16}

 

边覆盖:{(1,2),(2,3),(2,12),(3,4),(4,5),(5,6),(6,7),(6,8),(7,5),(8,9), (5,9),(9,10),(9,11),(10,11),(11,2),(12,13),(13,14),(14,15),(15,13), (13,16)}

 

主路径覆盖:{(1,2,3,4,5,6,7),(1,2,3,4,5,6,8,9,10,11),(1,2,3,4,5,6,8,9,11),(1,2,3,4,5,9,10,11),(1,2,3,4,5,9,11),(1,2,12,13,14,15),(1,2,12,13,16),(3,4,5,6,8,9,10,11,2,12,13,14,15),(3,4,5,6,8,9,11,2,12,13,14,15),(3,4,5,6,8,9,10,11,2,12,13,16),(3,4,5,6,8,9,11,2,12,13,16),(3,4,5,9,10,11,2,12,13,14,15),(3,4,5,9,11,2,12,13,14,15),(3,4,5,9,10,11,2,12,13,16),(3,4,5,9,11,2,12,13,16),(6,7,5,9,10,11,2,12,13,14,15),(6,7,5,9,11,2,12,13,14,15),(6,7,5,9,10,11,2,12,13,16),(6,7,5,9,11,2,12,13,16),(14,15,13,16)}

 

5.测试代码

技术分享图片

 测试结果

技术分享图片技术分享图片

 

hw3

标签:blog   错误   测试结果   .com   技术   语句   while   pos   body   

原文地址:https://www.cnblogs.com/suruoxun/p/8647616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!