在struct中使用自身,需要加struct关键字,无论带不带typedef,例如:

struct A

{

int a;

struct A *pA;

};

 

在定义struct方面尽量不要使用typedef,具体可参照<C专家编程>

相关文章: