[c++examples] add some examples