c++ sample stuff