#include#define N 5 int main() { //定义N*N二维数组及变量 int arr[N][N]= { {1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5} }; int i=0,j=0,temp; //输出原矩阵 printf("原矩阵:\n"); for(i=0;i
#include#define N 5 int main() { //定义N*N二维数组及变量 int arr[N][N]= { {1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5} }; int i=0,j=0,temp; //输出原矩阵 printf("原矩阵:\n"); for(i=0;i