convert c to c++ code