This thread describes how to move programs from C to C++.

C programs generally require little modification to compile as C++ programs. C and C++ are link compatible. You do not have to modify compiled C code to link it with C++ code.

Find the detailed PDF attached and shoot your queries, if any in the comments.