From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Trouble with bools Date: Tue, 21 Oct 1997 20:54:37 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 32 Message-ID: <344D168D.4B11@cs.com> References: <62irr4$chm$1 AT postern DOT mbnet DOT mb DOT ca> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp233.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mark Phillips wrote: > > 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? This exact code, cut and pasted and compiled as C++ code, works perfectly on my computer. Have you tried running your program under a debugger? In any case, this most likely isn't your problem. > also, is this kind of question meant for a c++ group or is it ok to > post here? If the problem has something to do with DJGPP, then it's fine to post here. This, however, looks like a generic language question, so comp.lang.c++ would be a much better place. Of course, I, like many of us, am glad to help you out any time. :) -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------