I am a Java programmer trying out c++, and I am not used to manual memory management.
I wrote a piece of code which attempts to generate a sierpiński triangle, and it