正在加载图片...
三种方法可用来定义结构体变量: 、先定义结构体类型再定义结构体变量 例: struct student f int num; char name 20; char sex int age, float score char addr30]; struct student X1, X2 类型标识符 则x1,x2为 student结构型变量,x1,x2可存 放 student类型数据 c語醒设计一、先定义结构体类型再定义结构体变量 三种方法可用来定义结构体变量: struct student x1 , x2 ; 则 x1 , x2为student 结构型变量,x1 , x2可存 放student类型数据。 例: struct student { int num; char name[20]; char sex; int age; float score; char addr[30]; } 类型标识符
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有