I have to write a C++ program that will sort an array, check for duplicates, and delete the duplicates:
i.e: a[0]='a', a[1]='b', a[2]='a', a[3]='c'. After sorting, I would have:
a[0]='a', a[1]='b', a[2]='c'.
I can load the array and have found several examples of how to sort, but cannot find out how to compare as well as change the array size or index. Any help would be appreciated.
Thanks.
Kyle.