2D vectors

Is it possible to have a 2-dimensional vector?

ie.


vector<int> myVector (2)(2)

closed account (zb0S216C)
Yes. You would declare one as: vector < vector < int > > 2DArray;

Wazzak
Thanks framework. I was wondering why I was getting errors for that.
Topic archived. No new replies allowed.