>Does anyone know how to delete a specific index of an array?
The only way is to overwrite it by shifting every element after the one you want to delete over it. For example:
for ( int i = to_delete + 1; i < n; i++ )
array[i - 1] = array[i];
--n;
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401