From: "Campbell, Rolf [SKY:1U32:EXCH]" Newsgroups: comp.os.msdos.djgpp Subject: Re: new vs malloc Date: Fri, 18 Feb 2000 15:03:40 -0500 Organization: Nortel Networks Lines: 13 Message-ID: <38ADA59B.48B71162@americasm01.nt.com> References: <38AD8622 DOT AE067F97 AT tiscalinet DOT it> NNTP-Posting-Host: wmerh0tk.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.72 [en] (X11; I; HP-UX B.10.20 9000/785) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com night DOT walker AT tiscalinet DOT it wrote: > Which is the difference between the "new" command and the "malloc" > function? "new" calls the constructor for the class of object you are allocating. Also, new aborts your program if it runs out of memory. -- (\/) Rolf Campbell (\/)