c++ Assignment3