On Fri, 1 Sep 1995, Graham Gilmore wrote: > > for (i = 1; i < NUM_TELEPORT_ROOMS; i++) > Two things. Your exit condition and your i increment are > reversed (causing i to increase without bound). Also, the first element > of the array is 0, not 1. Try this. > > for (i = 0; i++; i < NUM_TELEPORT_ROOMS) You mean: for (i = 0; i < NUM_TELEPORT_ROOMS; i++) *************************************************************************** * Ole Gjerde | Computer Science major * * | at North Dakota * * | State University * * Email: Gjerde@plains.NoDak.edu |-------------------------* * Gjerde@winternet.com | Proud user of Linux * ***************************************************************************
This archive was generated by hypermail 2b30 : 12/07/00 PST