I have a .h (header file) linked using #include<...>. I also have a .cp
file which i don't know how to include in the header of my "main" file.
I have the following c++ file.
The file names are: 1) dArray.h
2) dArray.cp
3) dArrayTest.cpp
dArray.h file declares and defines a class called DynamicArray.
dArray.cp defines the functions declared as member functions in
DynamicArray class in dArray.h. This dArray.h is includded in the
header of aArray.cp with #include<...> precompiler directive.
Question is: How do I include dArray.cp in the main program called
dArrayTest.cpp? Do I use the same pre-compiler directive? And do all
the 3 files need to be in the same folder for the calling file to "see"
the included file?
Any help on this is appreciated.
Jofio