c++ example