2015年3月22日
摘要: 一、题目 求二维矩阵中和最大的子矩阵。二、设计思路 将二维数组转化为一维数组,在运用一维数组求最大子数组方法求出。c[0][]=a[0][];c[1][]=a[0][]+a[1][];依次往下。 将二维数组存到txt文件中。三、源代码 1 #include 2 #include 3... 阅读全文
posted @ 2015-03-22 13:52 博客找田雨 阅读(541) 评论(1) 推荐(0)
摘要: 一、设计思路 将答案存入数组a,余数存入数组b中。与用户输入的答案进行比较。二、设计代码 1 /*程序名:四则运算*/ 2 #include 3 #include 4 #include 5 int answer(int a[],int b[],int length) //判断正误 ... 阅读全文
posted @ 2015-03-22 10:05 博客找田雨 阅读(207) 评论(1) 推荐(0)