c++ homework #1