diff options
Diffstat (limited to 'cpp01/ex01')
| -rw-r--r-- | cpp01/ex01/ex01.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 <iostream> + +void memoryLeak() +{ + std::string* panthere = new std::string("String panthere"); + std::cout << *panthere << std::endl; + delete panthere; +} |
