Modify the show() member function which you defined in the previous exercise. Replace "endl" with the Carriage Return manipulator ('\r') which you learned in Section 15.6.4, so that you can see the animated process. To pause between each move, call sleep(1) to sleep 1 second, or usleep(500000) to sleep 0.5 second.

PS: To refresh the screen, you need to run "cout << flush" in show().