This is just a little question we had as part of our lab, and ive gotten everything but displaying the brother. Im not sure what I am supposed to put there. Any help would be appriciated
Not to be that guy, but just to clear up on terminology:
Your example is passing the address of "brother", which is passing as a pointer, not a reference.
Both use the & symbol but in somewhat different ways.
It would be a reference if passed this way:
1 2 3 4 5 6 7 8 9
void displayPerson(Person & p) { // passed as reference
cout << p.firstName << endl << p.height << endl;
}
int main()
{
Person brother;
// ...
displayPerson(brother);
}