typedef struct S

{

  int v;

  //或者用char s[256];

  std::string s;

  int vv;

}

main:

  S s;

  //这行会导致内存泄漏

  ZeroMemory(&s,sizeof(S));

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2021-08-16
猜你喜欢
  • 2022-02-24
  • 2021-06-28
  • 2021-05-27
  • 2021-08-04
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案