Heres my situation:
Main can call either function A or function B. Regardless of which one is chosen, I need them both to be able to call function C. How do I do this?
When I use the #include "C.h" in function A, I can't use it in function B
or I get this error:
Function void C'(...)' already has a body.
Or do I need to combine functions?
Sorry for the use of letters but I feel it is easiest to explain this way.
You should not have the function body in the header, just the prototype. Put C's body in the source file and it should stop being a problem.
Great! It worked, thanks.