home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12523 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!ua1ix!ho19.eng.ua.edu!sdarbha
  3. From: sdarbha@ho19.eng.ua.edu (Subrahmanyam Darbha)
  4. Subject: Linked lists for three dimensionsi 
  5. Message-ID: <1992Aug19.033526.188129@ua1ix.ua.edu>
  6. Sender: news@ua1ix.ua.edu
  7. Nntp-Posting-Host: ho19.eng.ua.edu
  8. Organization: The University of Alabama, Tuscaloosa
  9. References: <1992Aug14.194033.10152@druid.uucp> <3116@isgtec.isgtec.com>
  10. Date: Wed, 19 Aug 1992 03:35:26 GMT
  11. Lines: 24
  12.  
  13.      I have a problem with three dimensional linked lists
  14.      I am having to write a linked list only because of the memory problem
  15.      as otherwise I would have to declare a two dimensional pointer of the
  16.      order *M[1000][1000][4]
  17.      For example I will write a two dimensional linked list like this
  18.      typedef struct array
  19.      {
  20.      int ycoord;
  21.      int val;
  22.      array *next; 
  23. }
  24.       struct *M[1000]
  25.      Where The array gives me the first coordinate and the ycoord gives me
  26.      the second degree of freedom
  27.      I would like to expand this to a three dimensional pointer
  28.  
  29.      Any suggestions are highly welcome.
  30.      Thanks much in advance.
  31.  
  32.      Subrahmanyam. Darbha.
  33. -- 
  34. *************************** Who else But Darbha ******************************* 
  35. sdarbha@buster.eng.ua.edu     Res: (205) 349 - 5143   Off: (205) 348-9289
  36. *******************************************************************************
  37.