直入主题 代码先行 typedef int Type; typedef struct Vector{ Type *data; int size,length; }Vec; 结构体不同的点是:更正的结构体名取代了变量名存在的位置 Vec 等价于 struct Vector 可用于直接定义变量 Vec A 等价于 struct Vector A 换一种形式就好懂了 typedef int Type; struct Vector{ Type *data; int size,length; }; typedef struct Vector Vec