2D vectors
Jul 14, 2011 at 7:06pm
Is it possible to have a 2-dimensional vector?
ie.
vector<int> myVector (2)(2)
Jul 14, 2011 at 7:09pm
Yes. You would declare one as: vector < vector < int > > 2DArray;
Wazzak
Jul 15, 2011 at 7:39pm
Thanks framework. I was wondering why I was getting errors for that.
Topic archived. No new replies allowed.