简单vc程序,请教
for(i=1;i<=n;i++)
scanf("%f",&b[i]);
printf("\nThe Value of b[][]:\n");
for(i=1;i<=n;i++)
printf("\n%f\n",b[i]);
for(k=1;k<n;k++)
{if(a[k][k]==0)
printf("can't do it");
else
for(i=k+1;i<=n;i++)
{a[i][k]=-a[i][k]/a[k][k];
printf("\na[i][k]=%f\n",a[i][k]);
for(j=k+1;j<=n;j++)
{a[i][j]=a[i][j]+a[i][k]*a[k][j];
printf("\na[i][j]=%f\n",a[i][j]);
b[i]=b[i]+a[i][k]*b[k];
}
}
x[n]=b[n]/a[n][n];
for(k=n-1;k>=1;k--)
{m=0;
for(j=k-1;j<=n;j++)
{m=m+a[k][j]*x[j];
}
x[k]=(b[k]-m)/a[k][k];
}
}
for(i=1;i<=n;i++)
printf("\n%f\n",x[i]);
要怎样改才可以