Add c++ sample codes.