Arrays

Write a three function program (your main function and two other functions).
The main function of the program should create an array that can store 10 integers.
The main function will then pass the array to a second function that gets the integers from the user and stores them in the array.
Then your main will call a third function that displays the elements in the array in the reverse order.
You must not use global variables.
Pass the array and the number of elements in the array as arguments to both of the called functions.

Here is some sample output:

Enter number 1: 12[Enter]
Enter number 2: 15[Enter]
Enter number 3: 4[Enter]
Enter number 4: 65[Enter]
Enter number 5: 42[Enter]
Enter number 6: 19[Enter]
Enter number 7: 5[Enter]
Enter number 8: 7[Enter]
Enter number 9: 33[Enter]
Enter number 10: 87[Enter]
The values in reverse order are:
Value number 10 is 87
Value number 9 is 33
Value number 8 is 7
Value number 7 is 5
Value number 6 is 19
Value number 5 is 42
Value number 4 is 65
Value number 3 is 4
Value number 2 is 15
Value number 1 is 12

The string literals will cause problems as mentioned above. Also seeing as C++ reads from top to bottom it has no idea that "readElements" and "printElements" exist yet when you call them from main. You will either want to move both of those functions above main or use forward declarations.http://www.learncpp.com/cpp-tutorial/17-forward-declarations/

For your printElements it says to print them in reverse (so your for loop wont be starting at 0 in that case)

Enter number 1: 12
Enter number 2: 15
Enter number 3: 4
Enter number 4: 65
Enter number 5: 42
Enter number 6: 19
Enter number 7: 5
Enter number 8: 7
Enter number 9: 33
Value number 1 is 12
Value number 2 is 15
Value number 3 is 4
Value number 4 is 65
Value number 5 is 42
Value number 6 is 19
Value number 7 is 5
Value number 8 is 7
Value number 9 is 33

Here is my code and output, I still need to enter a 10th number and the value numbers should be printed in reverse.