Well you have a few options.
1. You can make pessoas public
2. You can create a function called getPessoas() which will return a pointer to pessoas for that particular Liga object.
3. You can make Equipa a friend of Liga, that way it can access its data members.
Yes you can make it public and add the header to Equipa. If you want only Equipa to access the data members of Liga, and not any other class, then you can declare it as a friend:
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.