Thread: removing from array

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    16

    removing from array

    I'm just wondering if anyone know an efficient algorithm to remove an object from an array and move everything up.
    ie removing 2 from 1, 2, 3, 4, 5
    will be 1, 3, 4, 5

    Do I need to use pointers?

  2. #2
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    hmm...well otherwise you'd have to move memory and if the array is big it's much more efficient using pointers...
    I would imagine...
    /btq
    ...viewlexx - julie lexx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 1-D array
    By jack999 in forum C++ Programming
    Replies: 24
    Last Post: 05-12-2006, 08:01 PM
  2. 2d array question
    By gmanUK in forum C Programming
    Replies: 2
    Last Post: 04-21-2006, 01:20 PM
  3. Template Array Class
    By hpy_gilmore8 in forum C++ Programming
    Replies: 15
    Last Post: 04-12-2004, 12:15 AM
  4. two dimensional dynamic array?
    By ichijoji in forum C++ Programming
    Replies: 6
    Last Post: 04-14-2003, 05:27 PM
  5. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 09:31 AM
Website Security Test