菜鸟的一个问题,hello,world级别的。
doact 2004-08-16 09:23:15 我在运行下面这个程序的时候:
main()
{
float a[3][3],sum=0;
int i,j;
printf("please input rectangle element:\n");
for(i=0;i<3;i++)
for(j=0;j<3;j++)
scanf("%f",&a[i][j]);
for(i=0;i<3;i++)
sum=sum+a[i][i];
printf("duijiaoxian he is %6.2f",sum);
}
运行后出现了以下的信息:
please input rectangle element:
scanf : floating point formats not linked
Abnormal program termination
谁能告诉我这是什么意思,为什么会出现这种情况。以及解决的方法。