delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/22/02:47:58

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.           |
---------------------------------------------------------------------

- Raw text -


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