cpplearning:add example code for pointers