🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2215

Huge arrays in Turbo C++

#2215
From: Ajai Sehgal
Date: Wed, 12 Sep 1990 14:34
15 lines
1105 bytes
OK, so I can't use faralloc() to allocate extended memory. I found a solution
to my problem of large arrays....with a MINOR (sarcasm) problem. I declared
my arrays as follows:
			float huge image[1024][1024]
			float huge psf[1024][1024]

The problem is when I write to any location in array image, the same location
in psf is written. This symptom is explained by looking at the addresses of 
the respective arrays, THEY'RE THE SAME!!! ie &image == &psf Why??? Is this
a compiler bug or am I doing something wrong? I'm new to object oriented 
programming. Can anyone help? Thanks in advance.

Regards, Ajai.

 
Technical Details
Message-ID: <ajai.653150092@talos.sce.carleton.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mitel!cunews!ajai

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mitel!cunews!ajai
From: ajai@sce.carleton.ca (Ajai Sehgal)
Newsgroups: comp.os.msdos.programmer
Subject: Huge arrays in Turbo C++
Summary: Help!! All my arrays declarations refer to the same addresses!
Keywords: turbo c++
Message-ID: <ajai.653150092@talos.sce.carleton.ca>
Date: 12 Sep 90 14:34:52 GMT
Sender: news@ccs.carleton.ca (news)
Organization: Carleton University, Ottawa, Canada
Lines: 15