From 7d6a4c877de8048ec5fbea4a563b3d09c8976105 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 12 Jan 2020 20:20:12 +0100 Subject: cpp01 00 -> 04 --- cpp01/ex01/ex01.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cpp01/ex01/ex01.cpp (limited to 'cpp01/ex01/ex01.cpp') diff --git a/cpp01/ex01/ex01.cpp b/cpp01/ex01/ex01.cpp new file mode 100644 index 0000000..c08e1d2 --- /dev/null +++ b/cpp01/ex01/ex01.cpp @@ -0,0 +1,8 @@ +#include + +void memoryLeak() +{ + std::string* panthere = new std::string("String panthere"); + std::cout << *panthere << std::endl; + delete panthere; +} -- cgit