摘要: 设计思想首先确定生成数值的范围,然后生成随机数存入数组,用两个for循环来检测子数组的和,定义一个变量保存最大子数组的和。源程序代码#include #include #include using namespace std;void main(){ int a[20],b,c,d=0,i,j,k,... 阅读全文
posted @ 2015-03-23 17:55 BUANG 阅读(165) 评论(1) 推荐(0)