CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: OReubens

Search: Search took 0.22 seconds.

  1. Replies
    10
    Views
    11,280

    Re: Multi-dimensional vector ?

    well a very simple implementation for a 2D from single vector would be something like:



    class twodeeintarray
    {
    public:
    twodeeintarray(int x, int y) :
    sizex(x),
    sizey(y),
  2. Replies
    10
    Views
    11,280

    Re: Multi-dimensional vector ?

    1) the suggested solution for using a vector of vectors works, but it's not identical.
    With the vector of vectors, you get a bunch of memory areas (discontinuous) allocated to hold the actual data. ...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured