结构体问题
我们刚刚学结构体,很多东西不懂,求高手帮我看看下面程序哪里有错,谢谢!#include <stdio.h>
struct data
{
int month;
int day;
int year;
};
struct student
{
char name[20];
int age;
char sex;
struct data_birthday;
char language;
char department[30];
};
int main()
{
struct data d1={5,6,1976};
struct student s1={"LiMing",20,"M",d1,"c","计算机系"};
printf("%s",&s1);
return 0;
}
应该怎么改,菜鸟在此拜谢了!嘿嘿!