c++ sample