I need to write my 4-5 .cpp and .h file to c code. In C++ code we have defined a class, constructor, destructor, function.
How to convert them in C code?
Can somebody give me example of it so that i can implement it or provide link so that I can better explore it to my C code?
How to implement all the functionality i mean constructor,destructor,functions of class in C ?
Note that typedefs do not support subtyping, so all inheritance will have to be converted to composition.