array in c++ index of value remove code example Example: how to delete something in an array c++ delete myarray[elemen];