有啥错误啊 怎么运行不了呢??
题目:
#include <stdio.h>
int main()
{
int s[3][4];
int i,j,t,a,b,n;
printf("请输入12个数字并以空格分开:\n");
for (i=0;i<=2;i++)
for (j=0;j<=3;j++)
{
scanf("%d ",s[i][j]);
}
for (i=0;i<=2;i++)
{
for (j=0;j<=3;j++)
{
printf("%d ",s[i][j]);
}
printf("\n");
}
for (i=0;i<=2;i++)
{ for(j=0,n=s[i][0];j<=3;j++)
if (s[i][j]<s[i][j+1])
{
n=s[i][j+1];a=i;b=j+1;
}
t=s[i][0],s[i][0]=s[a][b],s[a][b]=t;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=3;j++)
{
printf("%d ",s[i][j]);
}
printf("\n");
}
return 0;
}