我定义一个结构提数组,想要对其进行输入操作,但程序提示出现异常而中断:scanf : floating point formats not linked
abnormal program termination
但当我将实型换为整型就能够进行输入操作!请高手指点!为什么用实型会出现上述错误.
程序为:
main()
{
int i;
struct stu
{
float score;
}stu[3];
for(i=0;i<3;i++)
scanf("%f",&stu[i].score);
}
chief_lfw:我看了你该的‘‘但还是不行‘‘