20 May 2013 by Andreas Gieriet
I regard using char* str = new char[sz]; as deprecated/anachronistic.If you do string handling, try using std::string str = ...; or if you work on raw memory try using std::vector mem;. Both are smart enough to handle the dynamic memory in a decent way, i.e. you do not have to care about...