标签:c语言
#include<stdio.h>
void main()
{ struct person
{ char name[20];
char sex;
struct date
{int year;
int month;
int day;
}birthday;
float height;
}per1,per2={"LiPing","M",2013,12,15,175.5};
per1=per2;
printf("%s%3c%4d/%2d/%d%7.1f\n",per1.name,per1.sex,
per1.birthday.month,per1.birthday.day,
per1.birthday.year,per1.height);
}
本文出自 “努力奋斗,互相提高” 博客,请务必保留此出处http://c10086.blog.51cto.com/6433044/1413765
编程题:展示对整个结构体变量的引用的其他方法。功能:对整个结构体变量进行操作。,布布扣,bubuko.com
编程题:展示对整个结构体变量的引用的其他方法。功能:对整个结构体变量进行操作。
标签:c语言
原文地址:http://c10086.blog.51cto.com/6433044/1413765