Write a C++ program to fill an array with 6 numbers, and then reverse the values of this array.

Note: By using a function with two parameters with the name of the array and the size of this array.

If you need to interchange the values contained in two array element, you need to have a temporary storage.

Assuming the array contains integers ("numbrs"), it would look something like this:

int ar[6];
.... read in values to ar[0] - ar[5].
...
exchange(ar,6);
...

void exchange{int ar[], int nar){
int tmp,i;
for(i=0;i<(nar+1)/2;i++){
// exchange values of ar[i] and ar[nar-i-1]
}
}

To write a C++ program that fills an array with 6 numbers and then reverses the values of the array, you can follow these steps:

1. Define a function that takes two parameters: the array and the size of the array. Let's call this function `reverseArray`. The function should have a return type of `void`, as it will modify the array directly.

2. Inside the `reverseArray` function, create a temporary variable to store elements while swapping them. Let's call this variable `temp`.

3. Use a loop to iterate over the first half of the array elements. In each iteration, swap the element at the current index with its corresponding element on the opposite end. For example, if the current index is `i`, swap the element at index `i` with the element at index `(size - 1 - i)`.

4. After the loop has finished, the array will be reversed. You don't need to return anything from the function.

5. In the `main` function, declare an array of size 6. Since arrays are zero-indexed in C++, the valid indices for this array will be from 0 to 5. Let's call this array `numbers`.

6. Use a loop to prompt the user to enter 6 integer values to fill the array. Inside the loop, use the `cin` object to read the input and assign it to the current index of the array.

7. Call the `reverseArray` function and pass the `numbers` array as the first parameter and the size of the array (6 in this case) as the second parameter.

8. Use another loop to print the reversed array. The loop should iterate from 0 to 5, and in each iteration, print the element at the current index of the `numbers` array.

Here's the complete C++ code:

```cpp
#include <iostream>
using namespace std;

void reverseArray(int array[], int size) {
int temp;
for (int i = 0; i < size / 2; i++) {
temp = array[i];
array[i] = array[size - 1 - i];
array[size - 1 - i] = temp;
}
}

int main() {
int numbers[6];

cout << "Enter 6 integers: " << endl;
for (int i = 0; i < 6; i++) {
cin >> numbers[i];
}

reverseArray(numbers, 6);

cout << "Reversed array: ";
for (int i = 0; i < 6; i++) {
cout << numbers[i] << " ";
}

return 0;
}
```

This program will prompt the user to enter 6 integers, store them in the `numbers` array, reverse the array, and finally print the reversed array.