[Solved] 2D array Seating Chart C++ [closed]


If I choose seat # 1 and Row # 1 it makes the mark on the chart at
seat and row #2…

The problem is that arrays in C start with index 0, so the left most seat has index 0, not 1. Thus, if you enter 1 into row2, and write map[row2][column2] = FULL, then actually the second seat is marked.

A simple fix would be to write map[row2-1][column2-1]; but make sure that the user must not enter value 0 then.

1

solved 2D array Seating Chart C++ [closed]