编译的没问题,逻辑上应该没问题?可为什么不能正常输入?
#include<stdio.h>int main()
{int i,j;
char name[3][10] ,id[3][10];
float grade[3][3];
for(i=0;i<3;i++)
{printf("please input the %d student's name\n",i+1);
gets(name[i]);
printf("please input his or her id\n");
gets(id[i]);
for(j=0;j<3;j++)
{ printf("please input his or her %d course grades\n",j+1);scanf("%f",&grade[i][j]);}
} return 0;}