Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #define _CRTDBG_MAP_ALLOC
  2. #include <stdlib.h>
  3. #include <crtdbg.h>
  4.  
  5. if (_CrtDumpMemoryLeaks()) {
  6.  std::cout << "Memory leaks!\n";
  7. }
  8. else {
  9.  std::cout << "No leaks\n";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement