c++ hw6 based on dynamic arrays