typedef就是给已有的类型名起一个别名
凡是合法的变量声明都可以使用typedef转换成类型声明
1、typedef short ElemType
2、typedef unsigned char u_int8
3、typedef int array[10]
4、typedef int *p
5、typedef struct list list;
给结构体起别名可以在使用时不用写struct
typedef就是给已有的类型名起一个别名
凡是合法的变量声明都可以使用typedef转换成类型声明
1、typedef short ElemType
2、typedef unsigned char u_int8
3、typedef int array[10]
4、typedef int *p
5、typedef struct list list;
给结构体起别名可以在使用时不用写struct