Having trouble. Don't really know where to start. I need to use a helper class to populate a stack in C#. The helper class needs to have a few dozen items used to populate the stack. Then, I need to use a timer to kick off a second process that takes an Object<class> off one stack and pushes it to another stack. Afterwards, I need to have a second event that takes off of the second stack and puts the items on the third stack
My biggest problems are using a helper class to populate the first stack. Then figuring out the syntax or process to use to move that over to the second stack, with a timer. I haven't used timers before, and I'm not very good at using stacks. I can get as far as declaring a stack, and pushing items in to the first stack, but it's not what is being called for here. I don't know how to go about using the helper class to push items in to the stack. The timer, as well as moving the items in the first stack to the second is a problem for me, too. I know it would be (for a brief example) Stack 1 = 1, 2, 3, 4, 5, 6, 7,... 50 Then when it moves to the next (after the timer), it will be Stack 2 = 50, 49, 48, 47, 46, 45, 44, 43.....1 But the syntax, or how I can go about getting it going is where I'm getting stuck
If anyone could help me out, I would appreciate it.