Does anyone know how to delete a specific index of an array? Is there any recommended library out there ?

>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;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.