I'm having trouble with the last function of this assignment:
Make a program that will search through scores of an array and display the scores in descending order to simulate a high score leaderboard. The program should contain the following:
main() - In main, declare an array called scores[]. Ask the user for 5 scores. Store the 5 scores in scores[]. Call a function called sortScores() and pass the array by reference. Call a function called displayScores(). Pass the array by value into that function.
sortScores() - This function will accept an array passed by reference and the size of the array. The function will use the selection sort algorithm to sort through array. You will need to modify the algorithm to sort the scores from greatest to least. This function returns no data.
displayScores() - This function accepts an array passed and will cout the contents of the array. Hint: You can use this function during development to see the array unsorted and sorted.
I'm doing something wrong because my sorted scores aren't showing up. Any help would be greatly appreciated :)