Homework C++