c -> c++ code