求解决一个基础问题
程序代码:#include <stdio.h>
#include <string.h>
void main(void)
{
struct birthdate
{
int year;
int month;
int day;
};
struct score_table
{
long int number;
char name[20];
char sex;
struct birthdate birth;
char depart[20];
float score;
}student1={20100311201,"杨科学",'M',{1990,5,26},"量子力学",93.1};
struct score_table student2={20100311202,"科学杨",'M',{1990,5,56},"应用物理",99.8};
struct score_table student3={20100311205,"杨科学",'M',{1990,8,9},"电子信息工程",99.9};
printf("学号 姓名 性别 出生日期 专业 分数\n");
printf(" %ld %s %c %4d-%2d-%2d %s %3.2f\n",student1.number,student1.name,student1.sex,student1.birth.year,student1.birth.month,student1.birth.day,student1.depart,student1.score);
}上面程序有什么错误,请指出.检查了好几遍都没发现问题,为什么运行不出来?








