C++ Homeworks