C++/Przeciążanie operatorów: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Nie podano opisu zmian
Nie podano opisu zmian
Linia 80:
//...
'''public''':
'''int''' '''operator'''==(Student & s, Student &q) {'''return''' s.nr_indeksu==q.nr_indeksu}; //to jest przeciez zle, w ciele klasy przeladowanie jest jedno argumentowe!
'''int''' '''operator'''==(Student & s, '''int''' &q) {'''return''' s.nr_indeksu==q}; //jw
};