摘要: 求二维数组的最大和的子数组:#includeusing namespace std;int Sum(int i,int k,int j,int l,int a[3][4]){ int sum=0; for(int c=i;cmax) max=num; } } } } cout<<max;}这是算的3*4的 想算别的就把3 4改成对应的边长。该程序是先把所有数组遍历一遍,输出所有子数组的和再输出最大的子数组。 杨理清,郭伟 阅读全文
posted @ 2014-04-01 23:03 Cinderella丶 阅读(110) 评论(0) 推荐(0) 编辑