vector<vector>

Hello

I´m new here, i'm use the site lots of times, but it's the first i use the forum, because i never needed until today.

My doubt is about STL vectors, i haven't find a answer in the forums. How can i create a

vector<int> in a for cicle;

this is imagine i have a game with a number x of users, and i need for each one a vector 2-dim, how can i create them?


Can anyone help me?

Thanks in advance.

PS:
With arrays i did it with player[num_players][][].

I don't know if this is the most correct way, but it works.
Topic archived. No new replies allowed.