C/C++ sample code and code snippets