new post c++ interview pretreatment and memory managment