I need help with creating a constructor.
I'm reading in a file with this data
Person Kristina Chung 1366 11 20
Person::Person( ifstream &in){
in >> this->type;
in >> this->firstName;
in >> this->lastName;
in >> this->birthDay.year; //not sure???
}
I have a date class, and a variable birthDay in the person class. How do I set the year/month/day ?
added instruction
Nevermind, I figured it out.