next up previous
Next: Array Element Ordering Up: Arrays Previous: RankExtents etc.

 

Hotel Array

Declare an array of rank 3 which might be suitable for representing a hotel with 8 floors and 16 rooms on each floor and two beds in each room. How would the second bed in the 5th room on floor 7 be referenced?


next up previous
Next: Array Element Ordering Up: Arrays Previous: RankExtents etc.

Adam Marshall ©University of Liverpool, 1996
Wed Oct 9 17:39:48 BST 1996