int *ptr_Array;
ptr_Array = new int[5];
Is it possible to remove the last element in the array?
I can PUSH the ints on one at a time.
I can delete the whole array.
delete []ptr_Array;
ptr_Array = NULL;
I can’t find a way to POP the elements off.
I tried the following and loads of other attempts.
ptr_Array[i_IastItem] = NULL;
I just can’t figure it out, I have been trying all day.
You can by using a
std::vectorinstead.