accessing classes and reversing inputs
yes, i know the latter topic is common. but theres a twist: a predefined class.
i have a predefined class for a stack that brings up a menu where you can push, pop, and peek. now i have to use this class in order to display what the user has pushed onto the stack, in reverse.
now this class uses new concepts like the 'new' operator in conjustion with pointers to allow any number of...numbers, to be input. ive read, and read, and read, but pointers are still weird to me in usage (although i do understand the concepts).
i was thinking of using the pop function to display the stack in reverse(loop it till it hits the null charcter), but in order to do that, i would have to allow for another user option. is this possible to do in my custom function that im writing or do i need to modify the existing class?
im also not sure how to access the actual inputs for things like sequencing and ordering, since theyre coupled with the 'new' operator...
i can provide code but was hoping to avoid the easy way out (someone doing the actual coded solution)
thanks!