Here's the problem.

Write a program that uses two identical arrays of at least 20 integers. It should call a function that uses the bubble sort algorithm to sort one of the arrays in ascending order. The function should keep a count of the number of exchanges it makes. The program then should call a function that uses the selection sort algorithm to sort the other array. It should also keep count of the number of exchanges it makes. Display these values on the screen.
Here's where my problem is. I can do void `bubbleSort` and void `selectionSort` and sort 20 random numbers that I input but I'm having a hard time trying to figure out how to add a counter for the number of exchanges in each of the sorting methods. 

Also, the instruction says to use `int bubbleSort(long [], int);` and `int selectionSort(long [], int);`. I'm confused why I would be using int instead of void. Perhaps I use both?

Anyways, any help is greatly appreciated. Thank you.

edit: Here's what I have so far. 

```
//Sorting Benchmarks
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;

// Function Prototypes
void sortArray (int [], int);
void showArray (const int [], int);
int bubbleSort(long [], int);
int selectionSort(long [], int);

int main()
{
    // Define an array with unsorted value
    const int SIZE = 20;
    int values[SIZE]{20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1);

    // Display the values
    cout << "The unsorted values are:\n";
    showArray(values, SIZE);

    //Sort the values. 
    sortArray(values, SIZE);

    //Display them again.
    cout << "The sorted values are:\n";
    showArray(values, SIZE);

    return 0;
}

void sortArray(int array[], int size)
{
     bool swap;
     int temp;

     do
     {
         swap = false;
         for (int count = 0; count < (size - 1); count++)
         {
             if (array[count] > array[count + 1])
             {
                              temp = array[count];
                              array[count] = array[count + 1];
                              array[count + 1] = temp;
                              swap = true;
                              count++
                              dispCount()
                              }
                              }
                              } while (swap);
                              }

void dispCount()
{
     cout << "The current number of exchanges are " << count << endl;
}

void showArray(const int array[], int size)
{
     for (int count = 0; count < size; count++)
         cout << array[count] << " ";
         cout << endl;

         system("PAUSE");
         }

```

With this, I'm getting a million errors, the biggest one being in int main, where it says expected primary-expression before "int" and expected ';' before "int". I've checked and I feel all the ;'s are where they belong.