CPPlearning:add some code.