第一:typedef的用途: 用途一: 在C中定義一個結構體類型要用typedef: typedef struct Student { int a; }Stu; 於是在聲明變量的時候就可:Stu stu1;(如果沒有typede