With this program you're stepping through the commands in order, so a linked list would be perfect. You don't need to jump around a whole lot.

If you do decide to use an array, make sure you allocate it on the heap, not on the stack. Otherwise you will run outta memory fast.