Is it possible to convert c++ to C by just changing the variables? or must i write the entire thing over :X
Is it possible to convert c++ to C by just changing the variables? or must i write the entire thing over :X
I don't know any tools for doing this, but as far as I know, in C++ you have classes, constructors and so on... in C you don't have it. So if your code uses class, it wont be a valid C code, just changing the variables.
Not to mention things like templating, operator overloading, etc etc. Theoreticly, you could do the same in C, but it'd be a real pain.Originally posted by Vber
I don't know any tools for doing this, but as far as I know, in C++ you have classes, constructors and so on... in C you don't have it. So if your code uses class, it wont be a valid C code, just changing the variables.
In such a case, you'd be best served using the C++ code as a guide and just rewrite the whole thing.
Quzah.
Hope is the first step on the road to disappointment.