delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/19:55:21

Message-ID: <375DA526.A3AC190C@swipnet.se>
From: Mattias =?iso-8859-1?Q?Ekl=F6f?= <cascade AT swipnet DOT se>
X-Mailer: Mozilla 4.51 [en] (Win98; I)
X-Accept-Language: sv,en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: memory
References: <7jk4cc$an5 AT fstgal00 DOT tu-graz DOT ac DOT at>
Lines: 8
Date: Wed, 09 Jun 1999 01:20:06 +0200
NNTP-Posting-Host: 212.151.112.141
X-Complaints-To: news-abuse AT swip DOT net
X-Trace: nntpserver.swip.net 928884078 212.151.112.141 (Wed, 09 Jun 1999 01:21:18 MET DST)
NNTP-Posting-Date: Wed, 09 Jun 1999 01:21:18 MET DST
Organization: A Customer of Tele2
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> how can I make an array with c++ in dos with 1Meg?

char* pArray = new char[1024*1024];
if (pArray == 0) cerr << "Oops...! Time to buy more memory!" << endl;

That's one way, at least...

Mattias

- Raw text -


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