Added some C++ examples for reference.