Kod: Zaznacz cały
istream& operator>>(istream& isObject , studentType& student)
{
isObject>>student.alphabeticalNum>>student.ID>> student.personType::setFirstName()>>student.personType::setLastName()>>student.points;
return isObject;
}
ostream& operator<<(ostream& osObject , const studentType& student)
{
osObject<<left<<setw(5)<<student.alphabeticalNum<< " "<<setw(5)<<student.ID<<" "<<student.personType::getFirstName()<<" "<<student.personType::getLastName()<<" "<<right<<setw(10)<<student.points<<endl;
return osObject;
}
plik person.h
Ukryta treść:
Ukryta treść: