//参考代码 #includeint main(){ int i,j,max,r,c,a[3][4]={{1,5,7,8},{11,12,10,9},{2,4,6,3}}; //假设第一个数就是最大值 max=a[0][0]; r=c=0; //依次遍历数组 for(i=0;i<3;i++) for(j=0;j<4;j++) if(max
#includeusing namespace std;#define N 5#define M 5void main() { int a[N][M],b[N],c[M],m,n,i,j; for ( i=0;i>a[i][j]; for ( i=0;i cout<<"每行数据元素之和: "; for ( i=0;i for ( i=0;i cout"每列数据元素之和: "; for ( i=0;i m=n=0; for ( i=0;i cout<<"最大数元素为: a["<}