求矩阵换位法c语言程序,希望有高手帮帮忙,是矩阵换位法不是列换位法...答:int a[4][4]={{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}};int b[4][4],i,j;printf("原矩阵为\n");for(i=0;i<4;i++)/*输出原矩阵*/ { for(j=0;j<4;j++)printf("%4d",a[i][j]);printf("\n");} for(i=0;i<4;i++)/*将数组元素进行转置...
c语言编程题,编写一个函数,实现n阶方阵的转置(即行列互换)急急急...答:include <stdio.h> include <stdlib.h> int main(){ int a[3][3]={1,2,3,4,5,6,7,8,9};int j,i,temp;for(i=0;i<3;i++)for(j=0;j<3;j++)scanf("%d",&a[i][j]);for(i=1;i<2;i++)for(j=0;j<=i;j++){ temp=a[i][j];a[i][j]=a[j][i];a[j...