#include <stdlib.h>
#include <crtdbg.h>
#define _CRTDBG_MAP_ALLOC
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
int _tmain(int argc, _TCHAR* argv[])
{
int *p=new int;
_CrtDumpMemoryLeaks();
return 0;
}
vc 下 c++检测内存泄露代码
最新推荐文章于 2025-03-28 11:16:13 发布