C++ homework assignments