struct{ int x; int y; }test1; struct test {int x; int y; }test1; typedef struct test {int x; int y }text1,text2; 第一个:只定义了一个test1的结构体变量,以后还想定义这种结构体的话,必须重写整个结构体。 第二个:以后想定义结构体的话,可以用struct test test2的方式定义。 第三个:可以直接用text1 test3的形式定义结构体变量。