My amazing c++ homework