c++ code included

Alternate c++ code for the same process.