My c++ code