I tried looking this up and got mixed results using header files and such.
Basically I have multiple .cpp files with all my functions I made for use with binary trees, BST, linked lists, etc.
Instead of having to copy and paste functions as I need them, I want to just be able to do a:
#include <myBSTFunctions.h>
And be able to call and use my own functions.
What are the steps to accomplish this? Make a header file with all the function prototypes I used?
And where should I place the .cpp and header file with all the actually functions?
Is there a way I can call the directory of the functions file directly?
I.e., I'm more thinking of having it in the same folder with the main source .cpp file to share with some of my colleagues.
How can I accomplish this?
On Windows and the MinGW compiler.