You don't have to use the standard library for it. Even if you don't have move-semantics (one move cost for moving the last element over the deleted element) you could still do a simple copy (just making it one copy cost).I am not entirely sure if our school compilers are updated for C++11 so I will have to log onto our CSE Machines to check that out. I will look into everything to see what I should do.
I also probably should make sure I'm allowed to use any of those from the standard library. Professor has been somewhat picky on us using the standard library in some places.
<array element at elementToDelete> = <array element at lastElement>
That's alot faster than...
for every element above elementToDelete
: <previous element> = <current element>
But, as mentioned, doesn't preserve the relative order of the elements - which may have been part of the class assignment's requirements.