VernonDozier
Posting Expert
5,675 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 738
Skill Endorsements: 18
And in getRecords(), you're passing a pointer to a struct, so you need to use the -> operator to access its methods, e.g:
acc->balance = 1000;
Or you can pass the struct "by reference", in which case you need to change your parameter declaration (in the prototype and the implementation of the method):
int FileHandler :: getRecords(struct status &acc)
(notice the '&' instead of the '*'). And then you can continue to use the .-operator as you are now.
raptr_dflo
Practically a Master Poster
605 posts since Aug 2010
Reputation Points: 76
Solved Threads: 83
Skill Endorsements: 1