0

This is what I have so far

#include <iostream>
#include <iomanip>
using namespace std;

const int NUM_SECTIONS = 3,
          NUM_ROWS = 5,
          NUM_COL = 9;

int main()
{

    int seatTable[NUM_SECTIONS][NUM_ROWS][NUM_COL] = { { { 100, 100, 100, 100, 100, 100, 100, 100, }, 
    {100, 100, 100, 100, 100, 100, 100, 100,},{100, 100, 100, 100, 100, 100, 100, 100,} , {90, 90, 90, 90, 90, 90, 90, 90,} , 
    {90, 90, 90, 90, 90, 90, 90, 90,} } ,{ {80, 80, 80, 80, 80, 80, 80, 80,}, { 80, 80, 80, 80, 80, 80, 80, 80,} , 
    {80, 80, 80, 80, 80, 80, 80, 80,} , {80, 80, 80, 80, 80, 80, 80, 80,} , {80, 80, 80, 80, 80, 80, 80, 80,} } ,
    { { 50, 50, 50, 50, 50, 50, 50, 50,} ,  {50, 50, 50, 50, 50, 50, 50, 50,} , {50, 50, 50, 50, 50, 50, 50, 50,} ,
    {50, 50, 50, 50, 50, 50, 50, 50,} , {50, 50, 50, 50, 50, 50, 50, 50, } } };


    for (int section = 0; section < NUM_SECTIONS; section++)
    {
        cout << "\n\nSection" << (section + 1); 
        for (int row = 0; row << NUM_ROWS; row++)
        {
            cout << "\nRow " << (row + 1) << ": ";
            for (int seats = 0; seats < NUM_COL; seats++)
                {
                    cout << setw(7) << seatTable[NUM_SECTIONS][NUM_ROWS][NUM_COL];

                } 
        }

            cout << endl;
    }
     return 0;
}
1
Contributor
1
Reply
8
Views
2 Years
Discussion Span
Last Post by arucke20
0

The only thing displaying on the screen is the three sections

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.