Score Board Bubble sort issue

Write your question here.
Hi, i have been given a task for my course to produce a leaderboard using arrays, the below code is where im at so far, however i dont know how to make all the other values move down a position in the table along with getting only the score that was beaten to change. can anyone help! i have a test tomorrow morning so i really need help on this one! thanks in advance!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <iostream>
#include <Windows.h>
#include <string>

using namespace std;

int main()
{
	int const SCORE_BOARD_SIZE = 3;
	int scores[SCORE_BOARD_SIZE] = { 0 };
	string names[SCORE_BOARD_SIZE];
	int newScore;
	int moveDown;
	bool swapped = true;


	cout << "\n Please enter a new score (-1 to quit) : ";
	cin >> newScore;


	while (newScore != -1)
	{

		while (swapped == true)
		{
			swapped = false;
			for (int i = 0; i < SCORE_BOARD_SIZE; i++)
			{
				if (newScore > scores[i])
				{
					moveDown = scores[i];
					scores[i] = newScore;
					scores[i + 1] - moveDown;
					swapped = true;
				}
			}
		}

		cout << "\t\t Current High Score Table!" << endl;

		for (int player = 0; player < SCORE_BOARD_SIZE; player++)
		{
			cout << "\t Player " << player + 1 << ": " << names << "\t" << scores[player] << endl;
		}
		
		cout << endl;
		cout << "\n Please enter a new score (-1 to quit) : ";
		cin >> newScore;

	}
}
Topic archived. No new replies allowed.