C++ demo