CPPlearning:add some code