in c++ I have
vector<vector<int> > table;
How can I resize vector so that it has 3 rows and 4 columns, all zeros?
Something like that:
0000 0000 0000
So that I could later change for example
table[1][2] = 50;
I know i can do this with for loop, but is there other way?
In 1 dimensional vector I could have:
vector<int> myvector(5);
And i could then type for example:
myvector[3]=50;
So, my question is how to do it with 2 dimensional, or even multidimensional vector?
Thanks!