Addition of C++ reversing integer program