第1个回答 2014-12-09
#include "stdio.h"
struct Date
{ int year;
int month;
int day;
};
struct Record
{ char name[30];
struct Date birth;
char sex;
char Tel[15];
char Mobile[15];
};
void main()
{ struct Record a[10];
scanf("%d%d%d",&a[0].birth.year,&a[0].birth.month,&a[0].birth.day);
printf("%d/%d/%d\n",a[0].birth.year,a[0].birth.month,a[0].birth.day);
}
我将这个题目的主要思路给你做了个小例子,你直接在主函数中根据要求设置输入和输出的方式即可。本回答被网友采纳