I am on the final portion of my project and need to incorporate an overloaded istream operator, I have defined it correctly to my knowledge, but I can't get it work properly...
The overloaded istream operator is : istream &operator>>(istream &in, Saving &S1)
So to use it you should be doing:
1 2 3
Saving S;
cin >> S;
You may have issues with getline(in, S1.name) if name is a private/protected member.
If name is public, then the overloaded istream operator is basically redundant anyway, because
you can just do: