关于排序的问题
输如10个学生的信息,然后按生日大小按升序排列!那位大虾帮我写一段能按生日大小升序排列的代码??
#include "stdio.h"
struct student
{char num[6];
char name[10];
int birthday[10];
int score[3]
}stu[10];
main()
{int i,j;
for (i=0,i<10,i++)
{printf("\n please input NO. %d score:\n" i);
printf("stuNO:");
scanf("%s",&stu.num);
printf("name:");
scanf("%s",&stu.name);
printf("birthday");
scanf("%d",&stu.birthday);
for(j=0;j<3;j++)
{printf("score %d ", j);
scanf("%d",&stu.score[j]);
}
}
}