正在加载图片...
第11章第1节 例: struct student—结构体名(是类型名,而非变量名) int num char nam30成员名 char sex; ge, float score;; §112结构体类型变量的定义 三种方法 先定义结构体类型,再定义变量 struct student Int num char name 303; char sex; 定义结构体类型 int age; float score; 3 分号不能少 struct student stul stu2 变量名 类型名 关键字第11章第1节 例: struct student { int num; char name[30]; char sex; int age; float score;}; 结构体名(是类型名,而非变量名) 成员名 §11.2 结构体类型变量的定义 三种方法 一. 先定义结构体类型, 再定义变量 struct student { int num; char name[30}; char sex; int age; float score;}; struct student stu1, stu2; 分号不能少 定义结构体类型 变量名 类型名 关键字
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有