I am trying to write a program that Store 5 numbers these values into an array of int []. Using the length of the array in a for() loop and decrementing the loop counter, write the array values in reverse order to the screen. Thats the easy part This is were i am having issues add code to read 5 words from the Console (user input). Store these values into an array of string []. Make sure the string[] array is large enough to hold at least 6 values. Store the string constant “end_of_array” into the last element of the array. Using a do…while() loop, print out the 1st and 3rd letters of each word (two letters per line) using the substring function. Can someone please help out.

#include <iostream>
#include <string>

using namespace std;


const char* END_OF_ARRAY = "end_of_array";

int main()
{
string theArray[6];
theArray[5] = END_OF_ARRAY;
cout << "Please enter 5 strings of your choice\n";
for(int counter = 0; counter < 5; counter++)
{
cin >> theArray[counter];
}

cout << "\nThe strings are:\n";
int counter = 0;
do
{
cout << theArray[counter++] << " \n";
} while (theArray[counter] != END_OF_ARRAY);

cin.get();
return 0;
}