kevinzhangftw / -t-stack Goto Github PK
View Code? Open in Web Editor NEWour MyStack class uses an array as its underlying data structure and will implement the following methods: default constructor – creates an array of size 10 constructor(int n) – creates an array of size n destructor – deallocates memory assigned to the underlying array push – inserts item at top of stack, throws an error if the stack is full pop – removes the item at the top of the stack, throws an error if the stack is empty