I've pretty much figured everything out except when trying to overload the '>>'. I seem to be able to get it to cin both my variable but when I want to see what I just cin'd to cout it just shows what I initialized at the beginning of main. Could anyone tell me what I'm doing wrong?
nevermind figured it out, but for those wondering you have to put an & in front of the type name. I think I know why this fixes it but I don't want to say and be wrong.
so this
1 2 3 4
istream& operator>>(istream& is, customer c7)
{
return is>>c7.first_name>>c7.pin_number;
}
to this
1 2 3 4
istream& operator>>(istream& is, customer& c7)
{
return is>>c7.first_name>>c7.pin_number;
}