Hello everyone this is my first post and I'm kinda new at this so please forgive me if I have a hard time with understanding the language we use for some of the terms. Anyways I am working on this project and running into a bunch of problems with the output. The way Arrays are suppose to be setup is that it has a limit of a thousand values. The User is suppose to input any positive number he wants and then it suppose to take those numbers and reverse the numbers via the way they were inputted. Just for your reference I am using VS.
You have an array that has room for 1000 integers.
The user enters N integers. Since your loop counts the terminating -1, the array will have at most 999 "real" values. Most likely the N is much smaller than 1000.
You then call std::reverse with all 1000 elements of the array. Surely you want to reverse (and later show) only the first N values?
You actually do have the real count of values. It is not the SIZE.
Unrelated, why do you use two different I/O systems? Use either C's <cstdio> or C++'s <iostream>.
Why is the int i; a global variable? It does not have to be.