delorie.com/archives/browse.cgi | search |
From: | Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Trouble with bools |
Date: | Fri, 24 Oct 1997 11:09:16 +0200 |
Organization: | University of Ghent, Belgium |
Lines: | 29 |
Message-ID: | <345065BC.13B5@rug.ac.be> |
References: | <62irr4$chm$1 AT postern DOT mbnet DOT mb DOT ca> |
NNTP-Posting-Host: | eduserv1.rug.ac.be |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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? I can't find anything wrong with this, so either: 1. You've declared scrn to be something else than bool after this declaration. 2. Possibly there's a #define scrn 3. There's a bug in the compiler 4. You use an experimental pgcc compiler. (In this case it is wrong to post to this newsgroup for this question) -- +----------------+ | Vik Heyndrickx | +----------------+
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |