I couldn't find where is the problem in this comparison.
It always display on MAC :
Segmentation fault : 11
The two objects contains strings(words) picked up from two different files.
and want to compare these two objects if they are similar, or contains the same words
main cpp file
UseData.cpp
The operator == function is calling itself recursively until the stack is exhausted. if(d1==d2) should be doing something with the member variables within the two Data objects.