Re: Maze Solver with Stacks
Quote:
(it's totally wrong)
What makes you say it's totally wrong? What does it do or not do?
Your question kinda says, "give me the code that makes my program do what I want it to".
Try to describe what the program does correctly,
what it does incorrectly,
where in the code (marked with comments in the code) the program seems to show undesired operation,
any opinion you have as to what you think is wrong,
and finally describe the correct behavior you are trying to get in the end.
Breaking the question down into something like this can even lead to discovering the problem and solution on your own. But even if it does not, it does assist others in figuring out the trouble (usually much faster) and offering advice.
Re: Maze Solver with Stacks
When I run it, my pc starts to freeze up like it's in an infinite loop so I have no clue what it does correctly. I don't know how to make it walk the maze while pushing and popping the stack.