Programming code samples in C++