c plus plus class homework