cpp homework