CompuServe Thread

C help

1 messages in this thread
#118772From: Henry WilliamsSep 2, 1990 6:54 PM
Hello John, The example on the switch command you helped me with a ways back works as I hoped it would. Due to this, I was able to continue with my program and get myself into another confusing situation. I hope you won't mind my asking your advice again. What I have done is initialize an array a[30][60] containing a maze and using the switch command with 8 compass points (n,se, etc.), I print out a portion of this maze, about 7 by 7 at a time. I've tried using a global array and I've tried passing the array between functions too. I wind up with the same results either way. ** The problem is this..I can start the program with no trouble. All seems to be working well for about ten moves, then I GURU with a cpu trap, address error (00000003.). Do you have any idea what's going wrong? I'm wondering if I have to do some actual allocation of memory for the array. I am running this program from the CLI window for now and I'm using a Manx compiler. Thanks. Regards, Henry