delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/21/18:16:45

From: bigphil AT merlin DOT magic DOT mb DOT ca (Mark Phillips)
Newsgroups: comp.os.msdos.djgpp
Subject: Trouble with bools
Date: Tue, 21 Oct 1997 18:36:15 GMT
Organization: MBnet - Manitoba's Connection To The Internet
Lines: 20
Message-ID: <62irr4$chm$1@postern.mbnet.mb.ca>
NNTP-Posting-Host: 204.112.6.196
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?

mark phillips

- Raw text -


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