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

struct A

{

int a;

struct A *pA;

};

 

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-09-16
  • 2022-02-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案