#define _CRTDBG_MAP_ALLOC
#include<stdlib.h>
#include<crtdbg.h>
//#include "debug_new.h" 很抱歉这里的不严谨,使用了别人提供的文件,下面是修改后的MSDN方法,具体注意事项请参考MSDN
#ifdef _DEBUG
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#define new DBG_NEW
#endif
#endif // _DEBUG