摘要: 测试代码查找list[]中的最大值:int Largest(int list[], int length);测试函数代码段:int Largest(int list[], int length) { int i,max; for(i = 0; i max) { max=list[i]; } } return max; }编写一个程序对Largest函数进行测试,并写出所有的测试用例。下面我们编写合适的函数功能,使其能测试出上面测试代码的错误。测试代码如下:// 20140303.cpp : Defines the entry point for the conso... 阅读全文
posted @ 2014-03-09 09:25 任国庆 阅读(375) 评论(0) 推荐(1) 编辑