C++ homework

C++ homework