09-25-2013, 06:59 PM
By the way, it's best not to implement a stack, but a queue. The difference is that a stack is a 'last in, first out', meaning you'd have to feed commands in the opposite order. A queue is a 'first come, first serve', meaning you can feed them in the proper order.
I'M BAAAAAAACK!