modify c to cpp.