added some C++ sample code\!