struct STU{ char name[20]; }stu[50]; typedef struct STU ElemType; 详细意思是什么呢?

如题所述

第1个回答  2012-04-01
struct STU{ char name[20]; }是定义一个结构体STU结构体内包含char name[20]; stu[50];STU应该大写定义50个结构体typedef struct STU ElemType定义已有类型 使ElemType相当于struct STU追问

ElemType代表的是struct STU{ char name[20]; };这种类型,还是struct STU{ char name[20]; }stu[50];这种类型。stu[50]有什么作用呢,如果定义了ElemType *elem,stu[50]和ElemType *elem又有什么关系呢?

相似回答