#include <string.h>
#include <stdio.h>
 typedef struct ss{
      int num;
      int dir[5][3];
}tent;
tent a;
int main()
{
    memset(&a, 0, sizeof(a));
    return 0;
}

这里有个坑,sizeof(变量名) 而不是 sizeof(tent)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
猜你喜欢
  • 2021-05-04
  • 2021-06-06
  • 2022-12-23
  • 2021-07-23
  • 2021-10-23
  • 2022-12-23
  • 2022-01-03
相关资源
相似解决方案