正在加载图片...
定义结构体变量 ●方法1:先定义结构体类型,再定义结构体 变量 般形式: struct结构体类型名{ 成员列表 struc结构体类型名变量名 例: struct student int number char name[10]; float score struct student stul, stu2 电子科技大学通信与信息工程学院电子科技大学通信与信息工程学院 定义结构体变量 ⚫ 方法1:先定义结构体类型,再定义结构体 变量 ⚫ 一般形式: struct 结构体类型名{ 成员列表 }; struct 结构体类型名 变量名; ⚫ 例:struct student{ int number; char name[10]; float score; }; struct student stu1, stu2;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有