正在加载图片...
方法2在定义结构体的同时说明结构变量 struct student struct结构体名 int number 类型说明成员1; char name [311 类型说明成员2; short age; char sex 类型说明成员n; int grade }变量名列表; char address [10] 1 student1, student2方法2 在定义结构体的同时说明结构变量 struct 结构体名 { 类型说明 成员1; 类型说明 成员2; … … 类型说明 成员n; } 变量名列表; struct student { int number; char name[31]; short age; char sex; int grade; char address[10]; } student1,student2;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有