sample c++