Quote:
I need help in knowing how to modify the code in Stack.cpp (which is a standard stack) so it implements a stack so it fills the array from right to left
Advice: Never do this. Stack.cpp is optimized to be efficient the way it is done.
I don't know what is your need, but reading the stack in reverse order is not a problem.
rather than :
for (i = Stack.bottom; i <= Stack.top; i++) {
}
you need to swap the values :
for (i = Stack.top; i >= Stack.bottom; i--) {
}
The code is just to illustrate the principle.