c++ basic example