next up previous contents
Next: Solution Up: Arrays Previous: Solution

 

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?

Go back to Notes gif




next up previous contents
Next: Solution Up: Arrays Previous: Solution

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.