delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/25/03:14:44

Message-Id: <199710250713.UAA05511@fep1-orange.clear.net.nz>
From: "Jamie Love" <jamie DOT love AT clear DOT net DOT nz>
To: <djgpp AT delorie DOT com>
Subject: arrays of pointers
Date: Sun, 26 Oct 1997 04:26:58 +1300
MIME-Version: 1.0

Hi, my mind is blank to the way to do the following.

What i want is an array of five DATAFILE pointers (of Allegro type)

At the moment i have DATAFILE *tiledata;

and i want to do it so that i can access one of five datafiles in a quick
array something like:

DATAFILE *tiledata[5];

I know this is wrong as it doesn't seem to work.

also, how to i access the data stored in the data array when i do use the
array of pointers

is it like:

tiledata[arraypointernum][datanum].dat;

or what?

Thanks for the help.

J Love.

- Raw text -


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