Mail Archives: djgpp/1997/10/22/02:47:58
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 -