个人错误,请大家去看看,并且留言,
https://bbs.bccn.net/viewthread.php?tid=352863&page=1&extra=###
int maxSum(int array[], int len) { int sum, t, i; for(sum = t = array[0], i = 1; i < len; i++) { if(t > 0) t += array[i]; else t = array[i]; if(t > sum) sum = t; } return sum; }