From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: 2d matrix class/c++ problems Date: Thu, 31 Jul 1997 20:37:40 -0700 Organization: Alcyone Systems Lines: 34 Message-ID: <33E15A04.7AE25020@alcyone.com> References: NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Timothy Robb wrote: > I'm trying to get a 2d matrix class to work which seems to compile fine > but crashes whenever I try to access data elements. I took a quick scan, and immediately came across a fundamental problem (I stopped looking there; there may be more). The problem is in Matrix::Matrix: data = new Complex* [rows]; assert(data != NULL); for(int i=0; i