home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:12573 comp.lang.c++:12646
- Newsgroups: comp.lang.c,comp.lang.c++
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!ua1ix!ho08.eng.ua.edu!sdarbha
- From: sdarbha@ho08.eng.ua.edu (Subrahmanyam Darbha)
- Subject: Problem with linked lists
- Message-ID: <1992Aug20.150131.107476@ua1ix.ua.edu>
- Originator: sdarbha@ho08.eng.ua.edu
- Sender: news@ua1ix.ua.edu
- Nntp-Posting-Host: ho08.eng.ua.edu
- Organization: The University of Alabama, Tuscaloosa
- Julieline: see if this comes up.
- Date: Thu, 20 Aug 1992 15:01:31 GMT
- Lines: 25
-
- I have a problem with making a three dimensional linked list
- Because I have to have a capability to expand the three dimensions to the following limits [1000][1000][4]
- I can not directly declare pointers to all these elements because of the memory limitations..
- That is why I am having to use linked lists.
- For two-dimensional list I do the following
- struct array {
- Int ycoord;
- int val;
- struct array *next;
- }
-
- Now I declare struct array *M[1000] this gives me the X-coordinate
- and the Ycoord gives me the Y-coordinate
- I have trouble expanding this to a three-dimensional list because I think
- it needs to be written with three *** in that case.
-
- Any help in this is highly appreciated
- Thanks much
-
- Subrahmanyam.
-
- --
- *************************** Who else But Darbha *******************************
- sdarbha@buster.eng.ua.edu Res: (205) 349 - 5143 Off: (205) 348 - 9289
- *******************************************************************************
-