cppbc: added sample code to docs