c++ homeworks