I am new to C++. I am learning Data Structures and Algorithms and I have created a HashMap class in C++. I am trying to use this HashMap map to solve two separate problems, which I have written in two separate class files. Here is an image of my source directory:
I am including HashMap class in ArrayIsASubsetOfAnotherArray.cpp and ArrayDisJointOrNot.cpp and I am including these two files in my main.cpp file:
As you can see in the above image I am getting Redefinition of 'HashMap'
error.
Why I am getting this error. What is the solution for this problem. I am trying to use the same HashMap and HashNode classes in all the problems i solve.
Thanks in Advance.