Thread View: csu.cs.200
2 messages
2 total messages
Started by Rittner
Wed, 02 Dec 1998 00:00
Assignment8 - Using the stack and queue
Author: Rittner
Date: Wed, 02 Dec 1998 00:00
Date: Wed, 02 Dec 1998 00:00
11 lines
887 bytes
887 bytes
When I read in the data from the file do I put the entire file into an array or just the first maze? When I push the data from the array to the stack am I pushing all the data on to the stack or just one position at a time. When I put the data on the queue is it all the data from the array or just one position at a time. I am also confused on what I tell it to push onto the queue and stack is it r and c???
Re: Assignment8 - Using the stack and queue
Author: John Erickson
Date: Wed, 02 Dec 1998 00:00
Date: Wed, 02 Dec 1998 00:00
31 lines
1633 bytes
1633 bytes
Answers are inline: Rittner wrote: > When I read in the data from the file do I put the entire file into an array > or just the first maze? One maze at a time. > When I push the data from the array to the stack am I pushing all the data > on to the stack or just one position at a time. Just one position at a time; row, col, steps > When I put the data on the queue is it all the data from the array or just > one position at a time. Same as above answer. > I am also confused on what I tell it to push onto the queue and stack is it > r and c??? row, col, and steps. I would suggest just pushing pointers to 3 element integer arrays. -- -==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==- John Erickson jerickso@holly.colostate.edu Black Sands Consulting Computer Science Major If they can make penicillin out of moldy bread, they can sure make something out of you. -- Muhammad Ali -==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads