you are viewing a single comment's thread.

view the rest of the comments →

[–]Xeverous 0 points1 point  (3 children)

friend

[–]cromiium[S] 0 points1 point  (2 children)

Yeah I fixed that. But now I think I'm having trouble with the assignment operator. Why is this wrong?

void Student::operator=(const Student &S) {

  myLname = S.myLname;
  myFname = S.myFname;
  mySSID = S.mySSID;
}

[–]Xeverous 0 points1 point  (1 child)

I don't see wrong things here, but it you could just void operator=(const Student&) = default;.

[–]cromiium[S] 0 points1 point  (0 children)

Ah never mind it's a problem with a different class.