home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!ua1ix!ho19.eng.ua.edu!sdarbha
- From: sdarbha@ho19.eng.ua.edu (Subrahmanyam Darbha)
- Subject: Linked lists for three dimensionsi
- Message-ID: <1992Aug19.033526.188129@ua1ix.ua.edu>
- Sender: news@ua1ix.ua.edu
- Nntp-Posting-Host: ho19.eng.ua.edu
- Organization: The University of Alabama, Tuscaloosa
- References: <1992Aug14.194033.10152@druid.uucp> <3116@isgtec.isgtec.com>
- Date: Wed, 19 Aug 1992 03:35:26 GMT
- Lines: 24
-
- I have a problem with three dimensional linked lists
- I am having to write a linked list only because of the memory problem
- as otherwise I would have to declare a two dimensional pointer of the
- order *M[1000][1000][4]
- For example I will write a two dimensional linked list like this
- typedef struct array
- {
- int ycoord;
- int val;
- array *next;
- }
- struct *M[1000]
- Where The array gives me the first coordinate and the ycoord gives me
- the second degree of freedom
- I would like to expand this to a three dimensional pointer
-
- Any suggestions are highly welcome.
- Thanks much in advance.
-
- Subrahmanyam. Darbha.
- --
- *************************** Who else But Darbha *******************************
- sdarbha@buster.eng.ua.edu Res: (205) 349 - 5143 Off: (205) 348-9289
- *******************************************************************************
-