摘要: 问题描述:求一个数组的子数组的最大和,并且标出数组的具体取值问。举例:有一数组:arr[5]={-4,5,6,-2,9},则它的子数组的和最大值为arr[2]到arr[3]的和。编程语言:c语言程序代码:// 20140310.cpp : Defines the entry point for the console application.//#include "stdafx.h"int main(int argc, char* argv[]){ int arr[100],sum,k; int max,first,last; printf("请输入数组的数字个数 阅读全文
posted @ 2014-03-10 15:28 任国庆 阅读(255) 评论(0) 推荐(1) 编辑