Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Picture need...

 
Netty poestel
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


can anyone put this 3-D array in a 'box' drawing , like the K&B book shows on arrays [ for e.g Lesson I, fig. 1-3].
a picture shall say > 1000 words

Thx. for any help
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I dont have the patience to draw boxes, but does this help:


I have not shown the indexes for the innermost elements because they are easy to see. I produced a flat printout of the array with the Java 5.0 java.util.Arrays.deepToString method. Then I indented and indexed it by hand. I've tried to mark arr[0][1][2] in a rather clumsy way.
[ December 11, 2004: Message edited by: Barry Gaunt ]
 
Netty poestel
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx again

I can atleast get it to work now.
For e.g this time around I could figure out myself what

(arr[3][0][1])

and

(arr[3][1][0]) & arr[1][1][0])

shall yield.

I've drawn myself a sketch on an A4 and I think I have a hang on the 3ds.
Thx.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic