C++ Assignment2 Work