my c++ homework