I have to write a C++ program that will sort an array, check for duplicates, and delete the duplicates:
i.e: a='a', a='b', a='a', a='c'. After sorting, I would have:
a='a', a='b', a='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.