I want to convert C++ code into C code; I have following questions in specific:
1. Ok.. I will convert classes into structs, but do structs in C contain functions? If yes, are functions declared and defined in struct body itself? Also, what to do if I want to declare func in struct but define outside it?
2. How to replace operator overloading kind of thing? Will struct vars behave just like class objects?
3. How to replace object handling kinda stuff? E.g. If I have an object of a class as member of some other class in C++, will simply replacing two classes with two diff. structures suffice? And in that order, struct vars. of these 2 diff. classes will behave like objects behaved in C++?
PLEASE HELP and ADVISE.
If you have other tips or some useful web links, please let me know.
THANKS IN ADVANCE!