www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/14/20:20:21

From: Konstanty <M DOT Bialkowski AT mailbox DOT uq DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Problems with Arrays
Date: Fri, 15 Jan 1999 11:13:33 +1000
Organization: University of Queensland
Lines: 16
Message-ID: <369E963C.ED7FB1DC@mailbox.uq.edu.au>
NNTP-Posting-Host: csmbialk.staff.uq.edu.au
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en,pl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In a program of mine I have two arrays initilised with "new".

eg
int *Map;
Map=new int [225];

The problem is that when I write to one array it corrupts the other with
the same data.

Is this because they were not initilised properly?
If so how can you check if an array is initilised properly?

Thanks in advance

Konstanty.

- Raw text -


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