I just learned how and why to split files into headers. Used it, it made sense and made programming much easier.
My question is after I have split my code into many header files like the example I was playing around with below, when I want to use this header that is made of many other headers do I have to put all its files and itself into the directory of the code that I am going to use it in or is there an easier, better standard way of doing this?
Okay thanks for that you have really cleared that up for me, what if I want to use matrices.h (which is the file that contains the code above) in a program in a different directory, is it enough for me to include matrices.h with it's directory or do I have to do something about the headers that are included in it too.
what if I want to use matrices.h (which is the file that contains the code above) in a program in a different directory
you can do this, but you also need to modify compiler options > include directories and input directory names containing all the headers that matrices.h includes.