for (i=0;i<4;i++)
{
for (j=i;j<4;j++)
{
temp=a[j][i];
a[j][i]=a[i][j];
a[i][j]=temp;
}
}
数组转置的代码
最新推荐文章于 2024-08-07 13:05:48 发布
for (i=0;i<4;i++)
{
for (j=i;j<4;j++)
{
temp=a[j][i];
a[j][i]=a[i][j];
a[i][j]=temp;
}
}