Remove an element from an array ?
Im coding an array of Student objects.
It will build have options to a) add and b) remove elements (Students) from the array.
Adding is straightforward enough but the problem for me is removing.
I assume the steps i need re something like :
Search for matching object in array
Remove object and move everything after back one
Shrink array size by 1
Problem is i believe you cant resize an array so maybe another array will be needed. Any suggestions?
Thanks in advance.