c++ and other code samples