Well, I can see why, I totally murdered describing it. Obviously I shouldn't try to explain things on no sleep.
Basically, say this is
my maze. I want it to fill in so that it looks like
this. The actual maze is basically a 2D array surrounded by a border.
If you look at those two pictures, you can see that to make the line that runs through the maze, you need to know where it is coming from and which direction it is going to. I figured to handle most of that, I could just use two pointers, one that points to the top of the stack, and the one that points to the one item below the top.
That should work in most cases except the beginning. At the beginning, it needs to interpret the previous item in the stack as an 'R'. Of course, the problem is that the stack should be empty. I'm not sure how to handle that.
I thought about initializing my stack with an 'R' in it, but I didn't think that would be good cause if it was told to pop that value out, it would mess up the program. So, any clue how to handle this? Can I make it so that it won't pop that value out? Any help?
And, your last question Edwards, just the standard output stream. Nothing fancy cause we haven't learned any of that yet.