C语言 哈夫曼编译码器

typedef struct
{
 char bits[maxsize];
 int start;
 char ch;
}codetype;

这段代码是起什么作用的?


typedef struct
{
 char bits[maxsize];   //位串
 int start;      //编码在位串中的起始位置
 char ch;        //字符
}codetype;

这个是定义codetype(编码类型)的结构体,创建一个新的数据类型,名称为codetype。