C/C++ code snippets and samples