gets和scanf的问题 &&**告急**&&
#include "stdio.h"#include "string.h"
main()
{
struct student
{char name[5];
int num;
int age;
int sc;
}st[50];
int i,j,a[50],t[5];
printf("enter the mesages of the students\n");
for(i=0;i<=49;i++)
{
printf("name:");gets(st[i].name);
printf("num:");scanf("%d",st[i].num);
printf("age:");scanf("%d",st[i].age);
printf("sc:");scanf("%d",st[i].sc);
}
getch();
}
输入的时候只能输入一次再就不能输入name了