上次提到结构体和数组,指针结合会显得更有其作用。今天的学习内容就为结构体数组。
其实定义的结构体变量就如数组一般。
struct student
{
int num;
char *name;
char sex;
float score;
}boy1,boy2={
102,"jane",'M'
上次提到结构体和数组,指针结合会显得更有其作用。今天的学习内容就为结构体数组。
其实定义的结构体变量就如数组一般。
struct student
{
int num;
char *name;
char sex;
float score;
}boy1,boy2={
102,"jane",'M'