⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memorycheck.h

📁 将压缩包里的头文件memory.h加入VC的INCLUDE目录下
💻 H
字号:
#ifndef memoryCheck_h
#define memoryCheck_h

#include <cstdlib>
#include <new>
#include <memory>

#include <crtdbg.h>

//#define _CRTDBG_MAP_ALLOC

#define DEBUG_NEW   ::new(_NORMAL_BLOCK, __FILE__, __LINE__)

#define new DEBUG_NEW

inline void memory()
{
	_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
	//_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -