#include <iostream>
#include <windows.h>
#include <crtdbg.h>
#include <memory>
using namespace std;
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#endif
int main(void)
{
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
//_CrtSetBreakAlloc(57);
int *p=new int;
auto_ptr<int>p (new int);
//getchar();
return 0;
}
/*
vc++内存泄露检测
1.请按F5
2.在按F4
*/