Date: Tue, 21 Oct 1997 18:49:11 -0700 (PDT) Message-Id: <199710220149.SAA19086@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: bigphil AT merlin DOT magic DOT mb DOT ca (Mark Phillips), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Trouble with bools Precedence: bulk At 06:36 10/21/1997 GMT, Mark Phillips wrote: >why won't this work? > >[code snipped] > >bool scrn[640][480]; > >[more code snipped] > > // initialize scrn: > for (int i=0; i<640; i++) > for (int j=0; j<480; j++) > scrn[i][j]=0; > >it never seems to leave the loop, what did i do wrong? > >also, is this kind of question meant for a c++ group or is it ok to >post here? No, you should post it to comp.lang.c++. I think your problem is something related to declaring loop variables in the `for' statement, though. Nate Eldredge eldredge AT ap DOT net