added examples for c++ learning tutorial
added examples for c++ learning tutorial