Homework&Exercise for C++