Mail Archives: djgpp/1999/06/09/09:45:04
Mattias Eklöf wrote:
> > 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;
^^^^ Hmmm... I think new won't return 0 but instead will rise an
exception.
Can anybody confirm?
--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013
- Raw text -