demo c++ interface