有关scanf()函数的问题(三)
xjyr 2005-12-21 10:41:15 编个程序对float型 a[3][4]二维数组输入12个数再把它输出
哈哈 简单吧!
本人编写如下
main()
{
int i,j;
float a[3][4];
for(i=0; i<3; i++)
for(j=0; j<4; j++)
scanf("%f",&a[i][j]);
printf("The a[3][4] is:\n");
for(i=0; i<3; i++)
{
for(j=0; j<4; j++)
printf("%f ",a[i][j]);
printf("\n");
}
getch();
}
无warning 无error
但结果显示是:
scanf: floating point format not linked
Abnormal program termination
敬请诸位高手指教!
注: 本人系统Win2000 软件Tc2.0