Create tempconverter.cpp

C++ port for the program previously written in C.