I was trying to read the file and store the contents using the unique variables stored in struct person from within the class but I kept getting that error.
Thanks for your solution, I am currently trying to get it to work, by the way, is this struct declared inside the class or outside? Best regards and thanks again
If you're using it as newNode->person->FNAME, it would be declared inside the class. Also, if you're using person->FNAME and stuff, you should really be using '*person' rather than just 'person'. After all, -> refers to the idea of pointing to a member of a struct/class. If person isn't a pointer, how can it point to anything? :P