Hi,
I'm doing a program that has a class called Liga. That class has a vector with 'Equipa's.
Liga has a vector called 'pessoas' which I want to access inside a function in each Equipa, is this possible?
for example:
Liga.h
...
vector<Pessoa*> pessoas;
...
Equipa.cpp
...
void Equipa::mostraStaff()
{
[INDENT]for(unsigned int i=0;i!=pessoas.size();i++)
[INDENT]pessoas[i].mostra();[/INDENT][/INDENT]
}
...
thanks in advance!