This seems like it should have a super easy solution, but I just can\'t figure it out. I am simply creating a resized array and trying to copy all the original values over, and
I highly suggest replacing the arrays with std::vector. This data structure will resize as needed and the resizing has already been tested.
std::vector