Most of the books I have are written with C++ (the physics, AI, maths and graphics books are particularly bad) and I would like to port the code over to straight C so that I can use it in my programs.
I have a couple of problems though. What is the C equivalent to a namespace? I know it is an OOP construct but can I safely ignore it? Also how do I port something which uses operator overloading? And is there a built in Vector variable in C++?I see some code that uses it, or is it just using typedef to assign floats (or ints) to the name vector?
I'll probably have a few more questions, I have not had much of a chance to look.
I have a couple of problems though. What is the C equivalent to a namespace? I know it is an OOP construct but can I safely ignore it? Also how do I port something which uses operator overloading? And is there a built in Vector variable in C++?I see some code that uses it, or is it just using typedef to assign floats (or ints) to the name vector?
I'll probably have a few more questions, I have not had much of a chance to look.