Adding examples

Adding examples for kodocpp API 
It looks a little weird to use "\n" here. We normally use std::endl in C++, just to be consistent.