std::vector<> is a Standard Template Library (STL) vector class. By having std::vector< std::vector<int> >, 1st vector contains vectors of int.Quote:
Originally posted by Cooker
Why "vector<std::vector<int> >" is 2 dimension array?
Could u describe that in detail?
THX.:confused:
In terms of memory layout that the vector class occupies, I don't think it will be the same as a 2D array. However, when you dereference the element within the vector object, the syntax is exactly the same, i.e. int result = array[i][j].
