From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: ok, I have more info on problem at hand Date: Sat, 02 Sep 2000 18:23:27 +0100 Organization: Customer of Energis Squared Lines: 16 Message-ID: References: <8oqt7m$6of$1 AT plato DOT wadham DOT ox DOT ac DOT uk> NNTP-Posting-Host: modem-77.phosphorus.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news8.svr.pol.co.uk 967915445 29097 62.136.14.77 (2 Sep 2000 17:24:05 GMT) NNTP-Posting-Date: 2 Sep 2000 17:24:05 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 Path: news.mv.net!newspeer.phoen-x.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!diablo.theplanet.net!news.theplanet.net!newspost.theplanet.net!not-for-mail Xref: news.mv.net comp.os.msdos.djgpp:103099 jstacey AT plato DOT wadham DOT ox DOT ac DOT uk (J-P) wrote: > >The error message says it all. You cannot implicitly cast the void > >ptr return from malloc() to a int ptr. If this is a C++ program you > >should use new/delete rather than malloc()/free(). > > ... unless you ever want to resize, in which case use malloc() and > realloc() and explicitly cast the pointers. The standard containers will let you resize. > Discuss (20 marks). Not here thanks. If you really think there is a place for malloc() in C++, post this to comp.lang.c++ and I'll watch the discussion with interest.