C++ study samples