vector<ClasseName*> name;

I have a 3 level hierarchy with ClasseName at the top.
I want to make a vector<ClasseName*> name; vector.
Where should I put it?
If I put it in int main(){} the rest of the functions say it has not been declared
Put it wherever you need it.
If you put it inside main(), you'll have to pass it as a reference to whichever function needs it.
Topic archived. No new replies allowed.