My C++ code