sizeof 后面所跟的数据类型没有定义,或者找不到定义的地方

 

eg:

头文件中定义结构体如下:

struct PersonaL{

   char name[];

        int  age;

};

但是在cpp中使用时如下:

struct personal a;

int len = sizeof(a);

 

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-11-01
猜你喜欢
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
相关资源
相似解决方案