Create New Array From Array Of Objects In Cpp