I believe my headers and 2 of my .cpp files are correct. however i get a segfault that seems to be because of lines 20 and 32 of the second code block. I can provide more code if needed. I can't fix the segfault. any help would be greatly appreciated
If you build with debug symbols and then run it under a debugger, it will tell you the exact line of code causing the segFault and allow you to check the values of variables at that point to find the culprit. Hours of staring at the code becomes thirty seconds of debugging if you use a debugger.