Hello. I need some help with a project of mine and the thing is that I have the class organisms that has two sub-classes: animals and plants. Animals has two subclasses itself: Carnivores and Herbivores.
I have succeded in including the plants header file or cornivores header file or herbivores file but whenever i include more than one of them i get errors about redefinition of the class organisms and things like that. Can anyone help me please? Thanks in advance

7 Years
Discussion Span
Last Post by SpyrosMet
Featured Replies
  • 1

    Are your header files macro-protected? [url=http://www.daniweb.com/forums/post1114822.html#post1114822]Clicky[/url] Read More


I don't think so. How do i make them macro-protected?

If you're not sure what it is, then probably not.

Did you follow the link?

Edited by Fbody: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.