复习结构体

结构体: 定义:在c语言中为数据类型的集合,不是变量类型。写在主函数外面。 struct+结构体名称 {     }变量名表列; 实例程序: #include <stdio.h> #include<stdlib.h> #include<string.h> struct student//定义结构体名称 {   char name[20];   int age;   char sex;   int
相关文章
相关标签/搜索