Hello guys.
The question I'm asking is most def a noob one. I suck at c++ and it's quite difficult to follow it's structure.
I read online about what include really means and I understand the file you're referencing just plops inside wherever you included it.
For the life of me though, can't seem to get the following scenario working:
I have a main.cpp and three files: Foo.h / Foo.cpp and Console.h.
Foo does various pieces of work.
Console contains a namespace (Console) and takes care of console debugging (prints stuff on an lcd).
I want to be able to call Console::Print(whatever) from any class my program might have.
However, if I include it in main.cpp, I can't use it inside Foo.cpp.
I've read about including guards, but even though I dont consider myself a slow person, I'm pretty much the Jon Snow of C++.
I'm really hoping some kind soul would provide a clear plain english explanation on how I should resolve this issue.