different c++ code