CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    27

    deleting element in 2d array?

    I want to delete an element in a 2d vector, say [1][1] in "Field", which is a 4x5 vector

    I tried
    Code:
    Field.erase([1][1]);
    I know that for a 1d vector, I would just do
    Code:
    Field.erase (Field.begin()+1)
    but what about for 2d vectors?

  2. #2
    Join Date
    Nov 2009
    Posts
    27

    Re: deleting element in 2d array?

    Never mind I figured it out
    Last edited by larry burns; October 17th, 2011 at 09:08 PM.

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