.H files AND .CPP files -- How should I organize my fairly complex program?
Posted on 2004-11-15
Currently... I have ~25 classes. They all share the same header file... I know! This is bad!
I think I need to have several folders with related classes in these folders... with each related class sharing a header file...
So instead of...
25-Classes which "include that one header file"
1 Master Header File
Then the .cpp files
Let's say I have this setup:
.... "uses the Bingolist declared in A.h"
.... "uses the Alpha list declared in B.h"
There will be an error -- Class Alpha will not recognize Bingo & Bingo class will not recognize Alpha ...
Or atleast one of them won't... I think they both won't.
What is the proper way of getting around this problem and having an organized setup of my classes?