c++course homework