看程序,不知道哪里错了,得不到结果
//输出成绩较高学生的学号,姓名和分数#include<stdio.h>
int main()
{
struct Student
{
int num;
char name[20];
int score;
}student1,student2;
scanf("%d,%s,%d",&student1.num,&student1.name,&student1.score);
scanf("%d,%s,%d",&student2.num,&student2.name,&student2.score);
printf("The higher score is:\n");
if (student1.score>=student2.score)
printf("%d,%s,%d\n",student1.num,student1.name,student1.score);
else
printf("%d,%s,%d\n",student2.num,student2.name,student2.score);
return 0;
}