Fixed string conversion error in output C++ code.