CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How to dynamically allocate multidimensional Arrays ?

    Howdy !
    Does anybody know how to
    dynamically allocate arrays of more than one dimension,
    at least TWO dimensions : array[x][y]


  2. #2
    Join Date
    Apr 1999
    Location
    SungNam KyungKi Korea
    Posts
    14

    Re: How to dynamically allocate multidimensional Arrays ?

    say " make an array like this

    int myarray[x][y];

    You can do that in this way, maybe... ^_^

    int (*myarray)[y];
    myarray=new int[x][y];

    Is this Your answer?



    by nfuox

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured