How do I write a program for a hotel room management system using a?
Probably this question assumes that every row in the array represents rooms on a single floor in a hotel. Consequently the number of rows will represent the number of floors in the hotel. In the most simple example you will need to store the information if the room is occupied so a bool type for the room representation should be enough. Depending on sophistication of the implementation you may use a data structure like: bool hotel [Rooms] [Floors]; or vector < hotel (Floors); // Variable number of rooms per floor