信息学奥林匹克竞赛C语言胶片6-定向原创V0.9例析.pptxVIP

  • 0
  • 0
  • 约1.9千字
  • 约 12页
  • 2017-04-20 发布于湖北
  • 举报

信息学奥林匹克竞赛C语言胶片6-定向原创V0.9例析.pptx

C语言;;结构Structure:用户自己建立的,由不同类型数据组成的,组合型的,数据结构 其他高级语言可能成为记录record 声明格式:struct 结构名 {成员列表}; 结构名又称结构标记structure tag 大括号内是所包含的子项,称为结构的成员member,声明格式:类型名 成员名; 成员列表又称域表;1、先声明结构类型,再定义结构变量 struct date { int day; int month; int year; }; struct student { int number; char name[50]; bool sex; short age; struct date birthday; char address[100]; }; struct student student1; 2、声明和定义同时进行 struct student { int number; char name[50]; bool sex; short age; struct date birthd

文档评论(0)

1亿VIP精品文档

相关文档