I am writing a function to delete repeats in an array. The array elements are entered at the keyboard (array may not be totally filled). I need to compare all elements and if any are repeated delete them. I'm using Visual C++. Here is some of what I've got so far.
int delete_repeats(char letters, int size)
int index, i(0), repeats(0);
for(index = 0; index < size; index++)
if (letters[index] == letters[index + 1])
//Need help here!