Mail Archives: djgpp/1999/06/28/13:20:21
Why not just try it and find out :) I don't see any reason why you shouldn't
be able to use an array this large. However, whenever I need more memory
than just a few bytes, I use a pointer and allocate the memory from the heap
instead.
In C++ that would mean using the new and delete operators or in C the
functions malloc and free. You should be able to use an array that large if
you prefer to do it this way.
forkazoo <mailto:forkazoo AT aol DOT com DOT spammy> wrote in message
news:19990628120046 DOT 27702 DOT 00002114 AT ngol08 DOT aol DOT com...
> Hello, I am just starting out in c++, and I have a question about how I
would
> go about making a rther large array (like 3 arrays each of 720*486 bytes,
or
> so). I have heard some compilers have a limit to how big they can
normally
> make something, and you have to go about allocating memory for anything
larger
> than like 64k. In DJGPP, would I have to do anything special to make an
array
> allong the lines of ...
>
> char large_ish_matrix [720] [486]
>
> ?
>
> Sorry if this is a silly questuion, but I am an extreme newbie to both
c++, and
> DJGPP.
>
> Thanks for you help!
>
>
>
> please remove .spammy.
- Raw text -