#include
int main(){
int *a,*b;
int m,n,i,j;
printf("input m n:\n");
scanf("%d %d",&m,&n);
a = (int *)malloc(sizeof(int)*m*n);
b = (int *)malloc(sizeof(int)*m);
printf("input the array in row order:\n");
for (i=0;i
for (i=0;i
printf("==================\n");
for (j=0;j
}
例子:
input m n:
3 4
input the array in row order:
11 12 13 14
21 22 23 24
31 32 33 34
==================
50 90 130