delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/21/21:52:56

Date: Tue, 21 Oct 1997 18:49:11 -0700 (PDT)
Message-Id: <199710220149.SAA19086@adit.ap.net>
Mime-Version: 1.0
To: bigphil AT merlin DOT magic DOT mb DOT ca (Mark Phillips), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Trouble with bools

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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019