Create example.cpp

example.cpp to tell everyone how to use.