#include patterns on medium sized programs

Hi I was just wondering what the best pattern for managing a medium sized program (~10K lines). I've programmed in c# and java for years but their style is obvious.

My original plan was to have a set of folders, each containing an amount of classes and functions, all related to eachother somehow.

But say core/main.cpp needs to include util/math.h. Is the only solution to this to have #include "../util/math.h" in main.cpp, or am I just going about this all wrong?
That's fine.

The other option is to add your directory tree to the compiler's #include search paths.
Topic archived. No new replies allowed.