I am working on a project and I keep getting stumped on how I am supposed to import files from a different directory. Here is how some of my files are organized:
-stdafx.h
-core/
-->renderer.cpp
-shapes/
-->sphere.h
-->sphere.cpp
how can i access the stdafx.h and shapes/sphere.h from the core/renderer.cpp?
There are many ways. You can
#include "../stdafx.h", for instance. More common is to add the root of your project to the include path and use#include "shapes/sphere.h". Or have a separate directory with headers in include path.