正在加载图片...
2、结构体变量的定义 (1)间接定义一先定义类型、再定义变量 例如,利用[案例10.1]中、结构体类型std info, 定义结构体变量student: 结构体类型名不可 struct std info student 缺!下列写法是错 误的: struct student 则结构体变量student拥有结构体类型std info的全 部数据项。 2024/10/28 7 2024/10/28 7 2、结构体变量的定义 (1)间接定义──先定义类型、再定义变量 例如,利用[案例10.1]中、结构体类型std_info, 定义结构体变量student: struct std_info student ; 则结构体变量student拥有结构体类型std_info的全 部数据项。 结构体类型名不可 缺!下列写法是错 误的: struct student ;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有