different C++ code