(这个是我写的,我觉得博文搬家有点麻烦,然后就复制粘贴过来了。)
1.具体问题(问题的解答还有待进一步的完善)
(1) 完整代码:
#include "stdio.h"
struct date
{
int month;
int year;
int day;
};
struct student
{
int num;
char name[16];
struct date birthday;
};
void main()
{
struct student student1;
printf("please input the data of the student\n");
printf("num \tname \n");
scanf("num is %d,name is %s",&student1.num,student1.name);
//getchar();
fflush(stdin);
printf("put into the birthday\n");
printf("the day \t the month \t the year\n");
scanf("%d%d%d",&(student1.birthday.day),&(student1.birthday.month),&(student1.birthday.year));
printf("the num is %d ,and