我的键入EOF陷入了无限循环
float grade, total = 0;while(scanf("%f", &grade) != EOF) //这个地方会产生无限循环,为什么??
{
total += grade;
printf("enter a grade; ");
}
printf("\nthe total of the grade is %f\n", total);
2013-02-02 23:24
2013-02-02 23:26
2013-02-03 12:51

2013-02-03 16:22
2013-02-04 09:20
2013-02-04 10:12
2013-02-04 11:26
2013-02-06 19:51
2013-02-06 19:54
2013-02-09 16:28