Hi guys, I am a fairly decent programmer in general, but still consider myself a noob (cos I odn't know stuff like this yet). Anyway I have a quick one for you:
I have created lots of classes and subsystems for an application I am building, but some classes are like utility classes (e.g. linked lists etc...) and I use them over and over again in all the other classes. I currently have an include in every class, and I would like to know how to get round this because, when I run the app I get linked list already defined...
I know I can just put the 'include' statement in the main cpp file above all the classes that use linked list for example, but is there anyway to say 'include only if not already included...'? This would not make my app run any better but it means that my classes can stand alone OR work together without changing source code.
Sorry if this is a simple one, I don't know what to search for otherwise I'd search myself lol, even the title of this post is ambiguous. However it, sounds like something c++ is capable of so hopefully one of you guys knows :D