C语言程序设计结构体分析.pptVIP

  • 19
  • 0
  • 约1.34万字
  • 约 38页
  • 2016-06-10 发布于湖北
  • 举报
struct student {int number; char name[20]; float score; char age;}; struct TV {int size; char type; int price;}; 定义结构体 定义结构体 .结构体成员是另一个结构体类型的变量 例如: struct Date /*日期结构 */  {    int month;    int day;      int year;     }; struct Student /*学生结构*/  {   int  Code;     /* 学号 */ char  Name[20];  /* 姓名 */   char  Sex;    /* 性别 */   int   Age;     /* 年龄 */   struct Date Birthday; /* 成员是另一个结构体变量 */   char  Addr[40];  /* 地址 */  } stu1, stu2;     结构体大小 struct student {int numbe

文档评论(0)

1亿VIP精品文档

相关文档