I'm getting information from a file and putting it into an array. My problem is after I get this information I have to reverse the original order of the numbers. The input file reads
9
23 19
-3 7892 12
7 4000 0 44
The first number tells how many numbers there are gonna be and is not part of the set. Right now my program outputs : 23 19 -3 etc.., but I need it to go from 44 0 4000 etc.. Any ideas? Help? Thanks.
Hi, if you're only concerned with the output, then simply change your for loop to this
for (int index = count; index > -1; index--)
cout << numbers[index] << " ";