神厨娘子txt下载:请看一下这个程序有什么问题呢

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/20 10:24:15
#include <stdio.h>
struct stu
{
float scr;
};
void main()
{
struct stu a[3];
int i;
for(i=0;i<3;i++)
{
scanf("%f",&a[i].scr);
printf("%f ",a[i].scr);
}
}
编译能通过不能运行,希望指点,谢谢!

toor@proc~$ test
3.57
3.5699998
4.7686789
4.7686789
-0.7
-0.700001
toor@proc~$

少了一个}......