C++ Sample