C++ example