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?
Printable View
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?
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