From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: large arrays -- newbie question Date: Mon, 28 Jun 1999 12:51:41 -0400 Organization: Netcom Lines: 37 Message-ID: <7l8972$ose@dfw-ixnews5.ix.netcom.com> References: <19990628120046 DOT 27702 DOT 00002114 AT ngol08 DOT aol DOT com> NNTP-Posting-Host: prn-nj4-04.ix.netcom.com X-NETCOM-Date: Mon Jun 28 11:51:46 AM CDT 1999 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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.