Hello,
I have an array and need to sort it so that the highest numbers show first etc..
I have written this:
for(int i=0; (i < 26); i++)
{
while(counter[i] < counter[i + 1])
{
int temp = counter[i];
counter[i + 1] = temp;
counter[i] = counter[i + 1];
cout << counter[i];
cout << counter[i + 1];
}
cout << " " << alphabetUpper[i] << " " << counter[i] << endl;
}
But it doesn't seem to be working? Any ideas? Thanks