摘要: 练习数值计算。找出一个整数数组中子数组之和的最大值,例如:数组【1,-2,3,5,-1】,返回8,因为符合要求的子数组是【3,5】; 程序代码如下,使用的是C语言: #include<stdio.h>int Serch(int a[],int n){ int i,temp; for(i=1;i<n; 阅读全文
posted @ 2017-04-23 15:23 ☆李凯城☆ 阅读(141) 评论(0) 推荐(0)